Compile Bootstrap.

Source: Internet
Author: User

My development board hardware:
MCU at91sam9260
SDRAM mt48lcm32 (32 MB 32bit)
Nandflash k9f5608doc (32 MB)

No dataflash or norflash

Modify Bootstrap as follows for our board.
I. Because the sdram I used is 32 m and 12 pins are used, I changed at91c_sdramc_nr_13 to at91c_sdramc_nr_12.
Sdram_init (at91c_sdramc_nc_9 |
At91c_sdramc_nr_12 |
At91c_sdramc_cas_2 |
At91c_sdramc_nb_4_banks |
At91c_sdramc_dbw_32_bits |
At91c_sdramc_twr_2 |
At91c_sdramc_trc_7 |
At91c_sdramc_trp_2 |
At91c_sdramc_trcd_2 |
At91c_sdramc_tras_5 |
At91c_sdramc_txsr_8,/* control register */
(Master_clock * 7)/1000000);/* refresh timer register */
2. Change the nandflash parameter in nand_ids.h to {0xec75, 0x800, 0X4000, 0x200, 0x10, 0x0, "Samsung k9f5608u0m 32 MB/0 "}.

3. Change the value of jump_addr from 23f00000 to 21f00000.
4. Remove the program for detecting Bad blocks from the at91f_nandread () function in Driver/nandflash. C. If you don't go, bootstrap always thinks that all the nandflash blocks are bad blocks, and the program cannot proceed. This is just an opportunistic method. Fortunately, it does not affect the loading of U-boot. The reason is that it is unclear, as if it is because the read/write timing of nandflash is different from that of the public version.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.