u Boot Readme

download u Boot Readme

of 3

Transcript of u Boot Readme

  • 7/22/2019 u Boot Readme

    1/3

  • 7/22/2019 u Boot Readme

    2/3

    --cross_compiler for axi export PATH=//microblaze-gnu/bin:$PATH export CROSS_COMPILE=//microblaze-gnu/binaries/lin32-microblazeel-unknown-linux-gnu_14.3_early/bin/microblazeel-unknown-linux-gnu-11.In linux Change path to "u-boot-xlnx" and run following commands: make distclean make microblaze-generic_config make12. Output files are stored inside "u-boot-xlnx" with "u-boot" name.

    For more information refer to :http://www.wiki.xilinx.com/Fetch+Sourceshttp://www.wiki.xilinx.com/Build+U-Boot

    ================================================================================-- Test Procedure================================================================================With U-BOOT we can test following peripherals: a.DDR memory b.Flash memory(NOR or NAND) c.Network related(Ethernet testing). d.I2C e.PCI

    f.USB g.SPI

    .b refers to byte access

    .w refers to word access

    .l refers to long word access

    DDR Memory Commands: mw [.b, .w, .l] --> [ex: mw.b 0x8c000000 0x353485 10] [ex: mw.w 0x8c000000 0x353485 10] [ex: mw.l 0x8c000000 0x353485 10

    ] md [.b, .w, .l] --> [ex: md.l 0x8c000000 10] cp [.b, .w, .l] cmp [.b, .w, .l]

    Flash commands: flinfo erase all (or) erase NOTE: start and end address should be with in flash range erase bank 1 erase 1:6-10 : -

    There are no separate commands for flash so with mw, md, cp and cmp flash hasto tested.Ethernet testing: 1.download tftp turbo from http://www.weird-solutions.com/enterprise-solutions/tftp-turbo. 2.configure tftp turbo a.Double Click on localhost in the Servers sidebar

    b.The login dialog should now be displayed: Leave the Password field blank and click on Login

  • 7/22/2019 u Boot Readme

    3/3

    c.Under the Tools menu select Control Service. The Control Service dialog should now be displayed:

    If the message says TFTP Turbo is running on localhost, simply click OK. If the message says TFTP Turbo is not running on localhost click Start then click OK. d.The TFTP Turbo server should now be running. 3.configure tftp server ip addr and board ip addr. set serverip 192.168.1.101 set ipaddr 192.168.1.22 4.connect ethernet cable 5.the file which we needs to be transfered to baord should be kept in installation directory of tftp turbo/tftp_root 6.tftpboot ex: tftpboot 0x8c000000 192.168.1.101:u-boot_working

    for more information refer:http://eduunix.ccut.edu.cn/index2/html/linux/O'Reilly%20-%20Building%20Embedded%20Linux%20Systems/belinuxsys-CHP-9-SECT-5.htmlhttp://support.atmel.no/knowledgebase/avr32studiohelp/com.atmel.avr32.tool.ngw100/html/u_boot_command_reference.htmlhttp://www.denx.de/wiki/DULG/UBootCmdGroupFlashhttp://www.stlinux.com/u-boot/flashhttp://blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:tftp_loading_fileshttp://blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:network-config

    ================================================================================-- How add user application to U-BOOT================================================================================1.Write new application code and include following header files: #include #include 2.Register command with u-boot command. U_BOOT_CMD( wr32, 4, 1, do_wr32, "Register write cycle", " " );

    U_BOOT_CMD( 3.Put custom application 'c' file in "u-boot-xlnx\common" in linux machine.4.Add "COBJS-y += " in "Makefile" which is located in "u-boot-xlnx\common".5.Compile image and you can see user commands in list.

    for more information refer:http://www.friendlyarm.net/forum/topic/2137

    ================================================================================-- U-BOOT booting Procedure================================================================================1.take "uboot.bin" file which is generated after make command and the same fileis located in "u-boot-xlnx\common".2.Open SDK select program flash which is available under "Xilinx Tool".3.Add bin file to "Image File".4.Change flash memory settings like offset change.5.Execution of program change to bram(ilmb_cntrl) and click on program.