u-boot2011.12 transplantation on mini24401

Publisher:创意旅程Latest update time:2022-07-26 Source: csdnKeywords:u-boot  mini2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Based on smdk240 in u-boot, ported to mini2440, gcc version 4.4.3, u-boot version 2011.12


1. Copy board/samsung/smdk2410 to board/samsung/mini2440; Rename smdk2410.c under board/samsung/mini2440 to mini2440.c; Modify the Makefile of board/samsung/mini2440, change COBJS := smdk2410.o to COBJS := mini2440.o;


2. Copy include/configs/smdk2410.h to include/configs/mini2440.h


3. Add a line to boards.cfg in the root directory as follows:

          mini2440                   arm         arm920t     -                   samsung        s3c24x0


4. Execution


#make mini2440_config


#make


Can compile normally


5. Modify mini2440.h,


         #define CONFIG_S3C2410        /* specifically a SAMSUNG S3C2410 SoC */

         #define CONFIG_SMDK2410        /* on a SAMSUNG SMDK2410 Board */


        change into

        #define CONFIG_S3C2440

        #define CONFIG_MINI2440

        #define CONFIG_SKIP_LOWLEVEL_INIT


       Will


        #define CONFIG_SYS_PROMPT    "smdk2410 # "


       change into

       #define CONFIG_SYS_PROMPT    "mini2440 # "


       Add at the end

       #define DEBUG


6. Modify the clock

Refer to http://blog.csdn.net/reille/article/details/6539735 to modify start.s and mini2440.c


7. Compile, the following error will appear:

s3c2410_nand.c: In function 's3c2410_hwcontrol':

s3c2410_nand.c:57: warning: implicit declaration of function 's3c2410_get_base_nand'

s3c2410_nand.c:57: warning: initialization makes pointer from integer without a cast

s3c2410_nand.c:72: error: dereferencing pointer to incomplete type

s3c2410_nand.c:72: error: dereferencing pointer to incomplete type

s3c2410_nand.c:75: error: dereferencing pointer to incomplete type

s3c2410_nand.c:75: error: dereferencing pointer to incomplete type

s3c2410_nand.c: In function 's3c2410_dev_ready':

s3c2410_nand.c:85: warning: initialization makes pointer from integer without a cast

s3c2410_nand.c:87: error: dereferencing pointer to incomplete type

s3c2410_nand.c: In function 'board_nand_init':

s3c2410_nand.c:129: warning: initialization makes pointer from integer without a cast

s3c2410_nand.c:150: error: dereferencing pointer to incomplete type

s3c2410_nand.c:153: error: dereferencing pointer to incomplete type

s3c2410_nand.c:154: error: dereferencing pointer to incomplete type

make[1]: *** [s3c2410_nand.o] Error 1


        This is caused by turning on the nand command. Comment out #define CONFIG_CMD_NAND and name.

        #define CONFIG_CMD_FAT

        #define CONFIG_CMD_EXT2

        #define CONFIG_CMD_UBI

        #define CONFIG_CMD_UBIFS

        #define CONFIG_CMD_MTDPARTS

        #define CONFIG_MTD_DEVICE

        #define CONFIG_MTD_PARTITIONS

        #define CONFIG_YAFFS2

        #define CONFIG_RBTREE

    

       To facilitate execution in ram, modify #define CONFIG_SYS_TEXT_BASE 0x0 to

      #define CONFIG_SYS_TEXT_BASE    0x32000000


      The compilation is successful, and u-boot.bin is downloaded to ram (address 0x32000000) and the execution results are as follows:


U-Boot 2011.12 (Apr 05 2012 - 23:34:12)


U-Boot code: 32000000 -> 320341F0  BSS: -> 32045E78

monitor len: 00045E78

ramsize: 04000000

TLB table at: 33ff0000

Top of RAM usable for U-Boot at: 33ff0000

Reserving 279k for U-Boot at: 33faa000

Reserving 4160k for malloc() at: 33b9a000

Reserving 24 Bytes for Board Info at: 33b99fe8

Reserving 120 Bytes for Global Data at: 33b99f70

New Stack Pointer is: 33b99f60

RAM Configuration:

Bank #0: 30000000 64 MiB

relocation Offset is: 01faa000

WARNING: Caches not enabled

monitor flash len: 00039A28

dram_bank_mmu_setup: bank: 0

Now running in RAM - U-Boot at: 33faa000

Flash: fwc addr (null) cmd f0 00f0 16bit x 16 bit

fwc addr 0000aaaa cmd aa 00aa 16bit x 16 bit

fwc addr 00005554 cmd 55 0055 16bit x 16 bit

fwc addr 0000aaaa cmd 90 0090 16bit x 16 bit

fwc addr (null) cmd f0 00f0 16bit x 16 bit

JEDEC PROBE: ID 1 2249 0

fwc addr (null) cmd ff 00ff 16bit x 16 bit

fwc addr (null) cmd 90 0090 16bit x 16 bit

fwc addr (null) cmd ff 00ff 16bit x 16 bit

JEDEC PROBE: ID 7e ea00 0

*** failed ***

### ERROR ### Please RESET the board ###


The first stage of modification is completed


reference:

http://blog.csdn.net/reille/article/details/6539616

http://blog.csdn.net/reille/article/details/6539735

http://hi.baidu.com/shanruo2008/blog/item/18c8ef2a9a7353275343c18c.html

http://hi.baidu.com/shanruo2008/blog/item/fbe3d80864ae49ce63d98677.html


Keywords:u-boot  mini2440 Reference address:u-boot2011.12 transplantation on mini24401

Previous article:Getting the ARM instruction set right (Part 2)
Next article:u-boot2011.12 transplantation on mini24402

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号