[U-Boot] Not able to change the UBoot env variables from Linux
Hi, I am trying to access the UBoot variables from Linux. I used the fw_printenv and fw_setenv commands for the same. When I do an fw_printenv I am able to see all the u-boot variables. However I get an error when trying to change the environment varibles r...@172.22.64.103:~# fw_setenv bootdelay 2 MTD_open MTD_read nand_read_ecc: from = 0x0008, len = 4 MTD_read nand_read_ecc: from = 0x00080004, len = 131068 MTD_close nand_sync: called MTD_open Unlocking flash... MTD_ioctl Done Erasing old environment...nand_erase: start = 0x0008, len = 131072 nand_isbad_bbt(): bbt info for offs 0x0008: (block 4) 0x00 DoneMTD_write Writing environment to /dev/mtnand_write_ecc: to = 0x0008, len = 4 d1... nand_write_ecc: Attempt to write not page aligned data CRC write error on /dev/mtd1: Invalid argument Error: can't write to flash Can some one help me with this? Thanks in advance Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Creating partitions on NAND flash
Hi Wolfgang, Thanks for the suggestions. I went through some of the documents. I found that the partitions and their offsets and partition names are provided in the .dts file. I hope I have understood it right. Regards, Afzal Nadirshah -Original Message- From: Wolfgang Denk [mailto:w...@denx.de] Sent: Friday, March 06, 2009 5:37 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Creating partitions on NAND flash Dear Afzal Nadirshah, In message 174230991e95d743b0c91df471ef44e8434f1c5...@mtw02msg02.mindtree.com you wrote: I would like to partition the NAND flash on a canyonlands board. As per my understanding, the partitioning is done using the add_mtd_partitions function in the file drivers/mtd/mtdpart.c. Look at the mtdparts command. I also understand that the information about a partition is stored in the structure : struct mtd_partition . I could not find out where this structure is getting populated in the u-boot code. How about trying something like grep -lr mtd_partition * ? My aim is to add more such partitions on the NAND flash on my board. Any information regarding partitioning the flash is highly appreciated. Reading the documentation is usually pretty helpful. I really recommend it. See for example http://www.denx.de/wiki/DULG/UBootCmdGroupFlash#UBootCmdFlMtdparts and http://www.denx.de/wiki/view/DULG/BootTimeConfigurationOfMTDPartitions Also, you should definitely look into UBI support if you're using this on NAND flash. 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 Worlds may change, galaxies disintegrate, but a woman always remains a woman. -- Kirk, The Conscience of the King, stardate 2818.9 http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Creating partitions on NAND flash
Hi All, I would like to partition the NAND flash on a canyonlands board. As per my understanding, the partitioning is done using the add_mtd_partitions function in the file drivers/mtd/mtdpart.c. I also understand that the information about a partition is stored in the structure : struct mtd_partition . I could not find out where this structure is getting populated in the u-boot code. Could somebody point out the file in which these partitions are created? I am also interested in knowing the file in which the different start / end addresses for these partitions are defined. On DaVinci EVM's I have found something like this when the u-boot comes up : Creating 5 MTD partitions on nand_davinci.0: 0x-0x0006 : bootloader 0x0006-0x0020 : params 0x0020-0x0040 : kernel 0x0040-0x0180 : filesystem 0x0180-0x0200 : data My aim is to add more such partitions on the NAND flash on my board. Any information regarding partitioning the flash is highly appreciated. Thanks in advance. Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] U-Boot hangs after loading device tree
Hi Pieter, Thanks for your suggestion. I guess its halting at the point where u-boot is handing over to the Linux kernel image. For doing the post mortem analysis, I am not able to obtain the address of the virtual Regards, Afzal Nadirshah -Original Message- From: Pieter [mailto:phenn...@vastech.co.za] Sent: Monday, March 02, 2009 4:24 PM To: Afzal Nadirshah Subject: Re: [U-Boot] U-Boot hangs after loading device tree Afzal Nadirshah wrote: Hi, I am trying to bring linux up on our custom board, by loading the kernel.img , canynlands.dtb and Ramdisk onto the RAM using the serial port. However the boot process is getting hung. The boot boot process stops after the following messages : = run flash_self ## Booting kernel from Legacy Image at 1c00 ... Image Name: Linux-2.6.25.7-2-geaaf8db Created: 2008-06-30 13:53:11 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:1547704 Bytes = 1.5 MB Load Address: Entry Point: Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 1c20 ... Image Name: Simple Embedded Linux Framework Created: 2002-10-24 9:30:38 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size:1476478 Bytes = 1.4 MB Load Address: Entry Point: Verifying Checksum ... OK ## Flattened Device Tree blob at 1c1e Booting using the fdt blob at 0x1c1e Uncompressing Kernel Image ... OK Loading Ramdisk to 1fc78000, end 1fde077e ... OK Loading Device Tree to 007f9000, end 007ff0b4 ... OK I have changed the kernel_addr, fdt_addr and the ramdisk_addr to the RAM addresses. This is the output of the printenv command : = printenv bootdelay=5 baudrate=115200 loads_echo= preboot=echo;echo Type run flash_nfs to mount root filesystem over NFS;echo hostname=canyonlands netdev=eth0 nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ramargs=setenv bootargs root=/dev/ram rw addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}1 addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate} addmisc=setenv bootargs ${bootargs} initrd_high=3000 kernel_addr_r=40 fdt_addr_r=80 ramdisk_addr_r=C0 hostname=canyonlands bootfile=canyonlands/uImage ramdisk_file=canyonlands/uRamdisk rootpath=/opt/eldk/ppc_4xxFP flash_self=run ramargs addip addtty addmisc;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr} flash_nfs=run nfsargs addip addtty addmisc;bootm ${kernel_addr} - ${fdt_addr} net_nfs=tftp ${kernel_addr_r} ${bootfile}; tftp ${fdt_addr_r} ${fdt_file}; run nfsargs addip a} net_self_load=tftp ${kernel_addr_r} ${bootfile};tftp ${fdt_addr_r} ${fdt_file};tftp ${ramdisk_; net_self=run net_self_load;run ramargs addip addtty addmisc;bootm ${kernel_addr_r} ${ramdisk_a} fdt_file=canyonlands/canyonlands.dtb load=tftp 20 canyonlands/u-boot.bin update=protect off 0x0100 ;era 0x0100 ;cp.b ${fileaddr} 0x0100 ${fv upd=run load update nload=tftp 20 canyonlands/u-boot-nand.bin nupdate=nand erase 0 10;nand write 20 0 10;setenv filesize;saveenv nupd=run nload nupdate pciconfighost=1 pcie_mode=RP:RP fdt_addr=1c1e ramdisk_addr=1c20 ram_root=run ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr} ram_ws=1C00 kernel_addr=1c00 stdin=serial stdout=serial stderr=serial ver=U-Boot 2009.01 (Feb 25 2009 - 15:12:15) bootcmd=run flash_self bootargs=root=/dev/ram rw ip=canyonlands:eth0:off panic=1 console=ttyS0,115200 filesize=1687BE Have anybody faced a similar problem? I recently had a similar problem - the solution was a combination of DTS tweaks and U-Boot defines for my board. have a look at the post mortem debugging and recheck all your defines. http://www.denx.de/wiki/view/DULG/LinuxPostMortemAnalysis or search the mailing list for my postings: [U-Boot] Custom MPC8548 boot using FDT problem cheers pieter http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] U-Boot hangs after loading device tree
Hi, I am trying to bring linux up on our custom board, by loading the kernel.img , canynlands.dtb and Ramdisk onto the RAM using the serial port. However the boot process is getting hung. The boot boot process stops after the following messages : = run flash_self ## Booting kernel from Legacy Image at 1c00 ... Image Name: Linux-2.6.25.7-2-geaaf8db Created: 2008-06-30 13:53:11 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:1547704 Bytes = 1.5 MB Load Address: Entry Point: Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 1c20 ... Image Name: Simple Embedded Linux Framework Created: 2002-10-24 9:30:38 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size:1476478 Bytes = 1.4 MB Load Address: Entry Point: Verifying Checksum ... OK ## Flattened Device Tree blob at 1c1e Booting using the fdt blob at 0x1c1e Uncompressing Kernel Image ... OK Loading Ramdisk to 1fc78000, end 1fde077e ... OK Loading Device Tree to 007f9000, end 007ff0b4 ... OK I have changed the kernel_addr, fdt_addr and the ramdisk_addr to the RAM addresses. This is the output of the printenv command : = printenv bootdelay=5 baudrate=115200 loads_echo= preboot=echo;echo Type run flash_nfs to mount root filesystem over NFS;echo hostname=canyonlands netdev=eth0 nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ramargs=setenv bootargs root=/dev/ram rw addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}1 addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate} addmisc=setenv bootargs ${bootargs} initrd_high=3000 kernel_addr_r=40 fdt_addr_r=80 ramdisk_addr_r=C0 hostname=canyonlands bootfile=canyonlands/uImage ramdisk_file=canyonlands/uRamdisk rootpath=/opt/eldk/ppc_4xxFP flash_self=run ramargs addip addtty addmisc;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr} flash_nfs=run nfsargs addip addtty addmisc;bootm ${kernel_addr} - ${fdt_addr} net_nfs=tftp ${kernel_addr_r} ${bootfile}; tftp ${fdt_addr_r} ${fdt_file}; run nfsargs addip a} net_self_load=tftp ${kernel_addr_r} ${bootfile};tftp ${fdt_addr_r} ${fdt_file};tftp ${ramdisk_; net_self=run net_self_load;run ramargs addip addtty addmisc;bootm ${kernel_addr_r} ${ramdisk_a} fdt_file=canyonlands/canyonlands.dtb load=tftp 20 canyonlands/u-boot.bin update=protect off 0x0100 ;era 0x0100 ;cp.b ${fileaddr} 0x0100 ${fv upd=run load update nload=tftp 20 canyonlands/u-boot-nand.bin nupdate=nand erase 0 10;nand write 20 0 10;setenv filesize;saveenv nupd=run nload nupdate pciconfighost=1 pcie_mode=RP:RP fdt_addr=1c1e ramdisk_addr=1c20 ram_root=run ramargs addip;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr} ram_ws=1C00 kernel_addr=1c00 stdin=serial stdout=serial stderr=serial ver=U-Boot 2009.01 (Feb 25 2009 - 15:12:15) bootcmd=run flash_self bootargs=root=/dev/ram rw ip=canyonlands:eth0:off panic=1 console=ttyS0,115200 filesize=1687BE Have anybody faced a similar problem? Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] U-Boot Digest, Vol 9, Issue 217
Actually she asked me to mail Regards, Afzal Nadirshah -Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Behalf Of u-boot-requ...@lists.denx.de Sent: Wednesday, February 18, 2009 4:22 PM To: u-boot@lists.denx.de Subject: U-Boot Digest, Vol 9, Issue 217 Send U-Boot mailing list submissions to u-boot@lists.denx.de To subscribe or unsubscribe via the World Wide Web, visit http://lists.denx.de/mailman/listinfo/u-boot or, via email, send a message with subject or body 'help' to u-boot-requ...@lists.denx.de You can reach the person managing the list at u-boot-ow...@lists.denx.de When replying, please edit your Subject line so it is more specific than Re: Contents of U-Boot digest... Today's Topics: 1. Re: [PATCH] 7/12 Multiadapter/multibus I2C, drivers part 4 (Wolfgang Denk) 2. Re: RAM Probing for ads5121rev4 (Wolfgang Denk) 3. AT91RM9200 U-Boot can not load initrd from flash (Dmitry K) 4. Re: U-Boot Makefile question (Frank Svendsb?e) 5. what are the configurations needed for new board (ABIRAMA SUNDARI) 6. which file have memory map information (ABIRAMA SUNDARI) 7. Re: flash configuration in u-boot (zix) 8. Re: flash configuration in u-boot (ABIRAMA SUNDARI) 9. Re: AT91RM9200 U-Boot can not load initrd from flash (Wolfgang Denk) 10. [U-BOOT][PATCH 1/4] mflash : Change MG_BASE define to inline function (unsik Kim) -- Message: 1 Date: Wed, 18 Feb 2009 09:55:16 +0100 From: Wolfgang Denk w...@denx.de Subject: Re: [U-Boot] [PATCH] 7/12 Multiadapter/multibus I2C, drivers part 4 To: h...@denx.de Cc: U-Boot user list u-boot@lists.denx.de Message-ID: 20090218085516.83ae5832e...@gemini.denx.de Content-Type: text/plain; charset=ISO-8859-1 Dear Heiko, In message 499bc39c.9050...@denx.de you wrote: But is is possible to use that code when running from flash, if this current pointer is writeable ... Yes, it is possible, but then - ther eis no need for it. For what is no need? For dynamic reconfiguration of I2C busses before relocation. 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 Pig: An animal (Porcus omnivorous) closely allied to the human race by the splendor and vivacity of its appetite, which, however, is in- ferior in scope, for it balks at pig.- Ambrose Bierce -- Message: 2 Date: Wed, 18 Feb 2009 10:01:33 +0100 From: Wolfgang Denk w...@denx.de Subject: Re: [U-Boot] RAM Probing for ads5121rev4 To: Emanuele Placidi emanuele.plac...@gmail.com Cc: u-boot@lists.denx.de Message-ID: 20090218090133.a3fc2832e...@gemini.denx.de Content-Type: text/plain; charset=ISO-8859-1 Dear Emanuele Placidi, In message 7c4b93310902180021o56da8320w2084e6a8c09c9...@mail.gmail.com you wrote: In your opinion it is possible to probe the ram before initialize it? Unfortunately there are some rev4 which are equipped with different ram model. Examples are welcomed. It is a standard feature in U-Boot (and has always been right from the start with PPCBoot nearly 10 years ago) that we auto-detected the memory configuration on the boards, both for RAM and flash. Some boards / architectures did not bother to implement this, but the feature itself is present. The details depend on processor, memory controller properties, specific RAM types used, etc. In case of the Micron/Elpida issue on the ADS5121, that should be not too difficult to solve. 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 How many QA engineers does it take to screw in a lightbulb? 3: 1 to screw it in and 2 to say I told you so when it doesn't work. -- Message: 3 Date: Wed, 18 Feb 2009 12:06:11 +0300 From: Dmitry K dimka...@rambler.ru Subject: [U-Boot] AT91RM9200 U-Boot can not load initrd from flash To: U-Boot@lists.denx.de Message-ID: 846497610.1234947971.54288136.73...@mcgi74.rambler.ru Content-Type: text/plain; charset=us-ascii; format=flowed Hello I've a board quite similar to AT91RM9200DK. I've compiled U-Boot 1.1.2 and 1.3.4 for it and both work fine with images loaded via tftp. When I try to boot same images from flash I got kernel running fine until this: ... No filesystem could mount root, tried: ext2 cramfs vfat romfs Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) Seems like initrd is not copied to RAM by U-Boot. The u-boot environment is: setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.10 setenv
Re: [U-Boot] U-Boot Digest, Vol 9, Issue 217
Hi All, It was a typo. Sorry for the inconvenience caused. Regards, Afzal Nadirshah -Original Message- From: Wolfgang Denk [mailto:w...@denx.de] Sent: Wednesday, February 18, 2009 4:31 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] U-Boot Digest, Vol 9, Issue 217 Dear Afzal Nadirshah, In message 174230991e95d743b0c91df471ef44e84343f2e...@mtw02msg02.mindtree.com you wrote: Actually she asked me to mail That's very interesting information, and definitely worth a 600+ lines full quote. Please read about netiquette before posting again. 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 There is is no reason for any individual to have a computer in their home. -- Ken Olsen (President of Digital Equipment Corporation), Convention of the World Future Society, in Boston, 1977 http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] tftp not working
Hi, I tried the same. But it still gives the same error. From: Wolfgang Denk [...@denx.de] Sent: Monday, February 16, 2009 12:12 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] tftp not working Dear Afzal Nadirshah, In message 174230991e95d743b0c91df471ef44e8434329c...@mtw02msg02.mindtree.com you wrote: I have compiled u-boot-nand.bin for the canyonlands board.I flashed this image onto the nand flash and did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code? You probably forgot to set a MAC address (ethaddr environment variable). Set one, then saveenv, then reset, then try again. 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 Data is a lot like humans: It is born. Matures. Gets married to other data, divorced. Gets old. One thing that it doesn't do is die. It has to be killed. - Arthur Miller http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] tftp not working
Hi, I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 10 u-boot-nand.bin, i get the following : = tftp 10 u-boot-nand.bin Waiting for PHY auto negotiation to complete.. TIMEOUT ! done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x10 Loading: * It hangs at this point Regards, Afzal Nadirshah From: Stefan Roese [...@denx.de] Sent: Monday, February 16, 2009 2:12 PM To: u-boot@lists.denx.de Cc: Afzal Nadirshah; Wolfgang Denk Subject: Re: [U-Boot] tftp not working On Monday 16 February 2009, Afzal Nadirshah wrote: I tried the same. But it still gives the same error. Please send the complete bootlog and the output of printenv. Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx.de = http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] tftp not working
Hi, I connected to the other ethernet port on the board. I got the following : = tftp 10 u-boot-nand.bin Waiting for PHY auto negotiation to complete.. done ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x10 Loading: * This also hangs at the same point. But when i do a boot from NOR, the u-boot in the NOR flash does not give any problems.I am able to do a tftp file download properly. From: Stefan Roese [...@denx.de] Sent: Monday, February 16, 2009 2:45 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de; Wolfgang Denk Subject: Re: [U-Boot] tftp not working On Monday 16 February 2009, Afzal Nadirshah wrote: I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 10 u-boot-nand.bin, i get the following : = tftp 10 u-boot-nand.bin Waiting for PHY auto negotiation to complete.. TIMEOUT ! !!! done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x10 Loading: * It hangs at this point Your board doesn't have a correct ethernet link. Is this really the original Canyonlands board? Is the correct ethernet port connected? Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx.de = http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] tftp not working
Hi All, I have compiled u-boot-nand.bin for the canyonlands board.I flashed this image onto the nand flash and did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code? Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Enabling POST on the canyon lands board
Hi All, I am trying to enable POST tests on the canyonlands board.I have added the following to the canyonlands.h header file. /* POST support */ #define CONFIG_POST (CFG_POST_CACHE | \ CFG_POST_CPU | \ CFG_POST_ETHER | \ CFG_POST_I2C | \ CFG_POST_MEMORY| \ CFG_POST_UART) /* Define here the base-addresses of the UARTs to test in POST */ #define CFG_POST_UART_TABLE {UART0_BASE, UART1_BASE} #define CONFIG_LOGBUFFER #define CFG_POST_CACHE_ADDR 0x0080 /* free virtual address */ #define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */ With the image I built after this changes, I tried to execute the diag command on the u-boot prompt. It shows only the rtc test. What else should I add to get other tests under the diag command ? Regards, Afzal http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] U-Boot Hanging
Hi, I have compiled u-boot (for nand flash, using canyonlands_nand_config) for the canyonlands board having a PPC460Ex. I have flashed the u-boot-nand.bin to the NAND flash. When I boot from the NAND flash the u-boot starts giving outputs onto minicom, but it hangs after just a few statements. U-Boot 1.3.4-00380-g302e52e (Sep 8 2008 - 15:37:41) CPU: AMCC PowerPC 460EX Rev. A at 600 MHz (PLB=200, OPB=100, EBC=100 MHz) Security/Kasumi support Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter disabled 32 kB I-Cache 32 kB D-Cache Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 16 I2C: ready DTT: 1 is 47 C DRAM: 512 MB Has anybody faced this issue? Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] How to do a basic memory test test using BDI??
Hi, Can I write simple tests for the RAM on a PPC460 and execute it using the BDI debugger? If I don't have linux / u-boot up on my board, how can I test the RAM? Thanks Regards Afzal Nadirshah| Senior Engineer | MindTree Ltd. Phase - I, Global Village West Campus, RVCE post, Mysore Road, Bangalore - 560059 | Voice +91 80 26264100 Extn: 66759 / Fax +91 80 2671 4000 | email: afzal_nadirs...@mindtree.commailto:afzal_nadirs...@mindtree.com |www.mindtree.comhttp://www.mindtree.com/ | http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Enabling POST for canyonlands board
Hi, Is the Power On Self Test enabled for the canyonlands board? What I want to know is whether I need to set any macro while compiling, to enable POST. I saw that there are some hot keys defined to start POST for certain boards. Is there anything defined like that for canyonlands board.How do I start the POST. Thanks in advance. Regards, Afzal Nadirshah http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Enabling POST for canyonlands board
Hi Stefan, Thanks for the reply. I looked into the file that you mentioned and also the README as well as the POST directory. I could not go into the details very minutely. From this I have understood that 1. Support for POST for canyonlands board is present. 2. To enable POST for canyonlands board, I only have to define the required macros. 3. I do not have to add / modify code to test the peripherals on the canyonlands board. Could you please let me know if I have understood it correctly? Thanks a lot. I am hard pressed for time and your suggestions are invaluable. Regards, Afzal Nadirshah -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: Thursday, January 29, 2009 9:17 PM To: u-boot@lists.denx.de Cc: Afzal Nadirshah Subject: Re: [U-Boot] Enabling POST for canyonlands board Hi Afzal, On Thursday 29 January 2009, Afzal Nadirshah wrote: Is the Power On Self Test enabled for the canyonlands board? A quick look at the canyonlands config header shows that it's not enabled. What I want to know is whether I need to set any macro while compiling, to enable POST. Yes. I suggest you take a look at the kilauea.h header. Here POST is enabled by default. I saw that there are some hot keys defined to start POST for certain boards. Is there anything defined like that for canyonlands board.How do I start the POST. Some POST tests are run always after poweron, and some (longer) tests are only run under certain conditions. doc/README.POST should give you an overview here. Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx.de = http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Flashing u-boot on NAND flash
Hi, I was going through the u-boot archives and I came across a reply from Leonid (http://lists.denx.de/pipermail/u-boot/2008-March/030788.html) Accordingly I did the following : 1. I set the TEXT_BASE to the address 0x100 in board/amcc/canyonlands/config.mk 2. The initdram function in board/amcc/canyonlands/canyonlands.c was left alone as it contained only the following code : return CFG_MBYTES_SDRAM 20; 3.i did not have the file board/xilinx/ml403/u-boot.lds, instead of that, I used the file board/xilinx/ppc440generic/u-boot-ram.lds. With these changes I compiled the u-boot and it compiled properly. Then I loaded the bin file using the BDI 3000 to the location 0x100, I set rm pc 0x1000100 And entered the command go. After this I expected to get the u-boot messages through the serial port on minicom. But I din get anything on minicom. Could you please guide me as to where I am going wrong? Thanks Regards Afzal Nadirshah| Senior Engineer | MindTree Ltd. Phase - I, Global Village West Campus, RVCE post, Mysore Road, Bangalore - 560059 | Voice +91 80 26264100 Extn: 66759 / Fax +91 80 2671 4000 | email: afzal_nadirs...@mindtree.com |www.mindtree.com | -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: Tuesday, January 20, 2009 2:24 PM To: u-boot@lists.denx.de Cc: Afzal Nadirshah Subject: Re: [U-Boot] Flashing u-boot on NAND flash On Tuesday 20 January 2009, Afzal Nadirshah wrote: I am new to board bring up and I have a few queries. We have a custom board with a PPC 460EX processor and a NAND flash. We are using a BDI 3000 JTAG debug interface. My problem is how to load the u-boot onto the NAND flash on the fresh board, since the BDI does not support writing into NAND flash. Correct. AFAIK, the BDI doesn't support direct NAND reading/writing. Also from the mailing lists I understand that it is difficult to execute the u-boot by directly downloading to the RAM and executing it. Please guide me on how to approach this. This is indeed not so easy. Currently there is no 4xx U-Boot target option to configure the image to boot directly from already configured SDRAM as until now all 4xx boards were able to boot from NOR FLASH. When only NAND booting is supported as in your case, you probably need such an configuration option such as CONFIG_SKIP_LOWLEVEL_INIT which is available on other platforms (MIPS, ARM). Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx.de = http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Flashing u-boot on NAND flash
Hi Everybody, I am new to board bring up and I have a few queries. We have a custom board with a PPC 460EX processor and a NAND flash. We are using a BDI 3000 JTAG debug interface. My problem is how to load the u-boot onto the NAND flash on the fresh board, since the BDI does not support writing into NAND flash. Also from the mailing lists I understand that it is difficult to execute the u-boot by directly downloading to the RAM and executing it. Please guide me on how to approach this. Thanx in advance. Thanks Regards Afzal Nadirshah| Senior Engineer | MindTree Ltd. Phase - I, Global Village West Campus, RVCE post, Mysore Road, Bangalore - 560059 | Voice +91 80 26264100 Extn: 66759 / Fax +91 80 2671 4000 | email: afzal_nadirs...@mindtree.commailto:afzal_nadirs...@mindtree.com |www.mindtree.comhttp://www.mindtree.com/ | http://www.mindtree.com/email/disclaimer.html ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot