uboot学习笔记之uboot1.3.4一移植

自己学习嵌入式学习已经有一段时间了,感觉不懂的太多,在这里想把每一步学习的只是一步一步记录下来,以供自己以后查看使用,也希望看到这篇文章的朋友多给点意见。这篇主要是记录一下,u-boot-1.3.4部分,u-boot-1.3.4是一个比较老的版本,大概是08年的,与现在最新的差距还是挺大的,但是相比现在最新的uboot的移植起来要困难一点,不过对于学习来说,能学到的东西相对要多一点。

下面是这次移植涉及到的部分文件,工查阅使用。

1.在u-boot-1.3.4\board\samsung下添加文件夹smdkc110,包含文件如下

         flash.c 

         lowlevel_init.S 

        Makefile 

        smdkc110.c 

        smdkc110_val.h 

        u-boot.lds

2. u-boot-1.3.4\common\cmd_boot.c
    添加:
    U_BOOT_CMD(
    re, 1, 0,    do_reset,
    "reset   - Perform RESET of the CPU\n",
    NULL
    );
    
3. u-boot-1.3.4\common\cmd_bootm.c
    LINUX_ZIMAGE_MAGIC
    
4. u-boot-1.3.4\common\cmd_date.c

5. u-boot-1.3.4\common\cmd_ext2.c

6. 添加 uboot_smdkv210-8-18\common\cmd_fastboot.c

7. u-boot-1.3.4\common\cmd_fat.c            //mmc相关 FAT32等
    U_BOOT_CMD(
    fatformat,    3,    0,    do_fat_format,
    "fatformat - disk format by FAT32\n",
    "<interface(only support mmc)> <dev:partition num>\n"
    "    - format by FAT32 on 'interface'\n"
);

8. u-boot-1.3.4\common\cmd_flash.c  //flash 操作

9. u-boot-1.3.4\common\cmd_ide.c

10. u-boot-1.3.4\common\cmd_mem.c

11.u-boot-1.3.4\common\cmd_mmc.c

12.u-boot-1.3.4\common\cmd_mmc_fdisk.c

13.u-boot-1.3.4\common\cmd_movi.c

14.u-boot-1.3.4\common\cmd_mtdparts.c

15.u-boot-1.3.4\common\cmd_nand.c

16u-boot-1.3.4\common\cmd_nvedit.c

17.u-boot-1.3.4\common\cmd_onenand.c

18.u-boot-1.3.4\common\cmd_ubi.c

19.u-boot-1.3.4\common\cmd_usbd.c

20.u-boot-1.3.4\common\console.c

21.u-boot-1.3.4\common\env_auto.c

22.u-boot-1.3.4\common\env_common.c

23.u-boot-1.3.4\common\env_movi.c

24.u-boot-1.3.4\common\env_nand.c

25.u-boot-1.3.4\common\hush.c

26.u-boot-1.3.4\common\image.c

27.u-boot-1.3.4\common\main.c

28.u-boot-1.3.4\common\secure.c

29.u-boot-1.3.4\cpu\s5pc1xx

30.u-boot-1.3.4\disk\part.c

31. u-boot-1.3.4\drivers\mmc\atmel_mci.c

32.u-boot-1.3.4\drivers\mmc\Makefile

33.添加文件u-boot-1.3.4\drivers\mmc\mmc.c

34. 添加文件u-boot-1.3.4\drivers\mmc\s3c_hsmmc.c

35.u-boot-1.3.4\drivers\mtd\nand\nand.c

36.u-boot-1.3.4\drivers\mtd\nand\nand_base.c

37.u-boot-1.3.4\drivers\mtd\nand\nand_bbt.c

38.u-boot-1.3.4\drivers\mtd\nand\nand_ids.c

39.u-boot-1.3.4\drivers\mtd\nand\nand_util.c

40.u-boot-1.3.4\drivers\mtd\nand_legacy\nand_legacy.c

41.u-boot-1.3.4\drivers\mtd\onenand\onenand_base.c

42.u-boot-1.3.4\drivers\mtd\onenand\onenand_bbt.c

43.u-boot-1.3.4\drivers\mtd\onenand\onenand_uboot.c

44.u-boot-1.3.4\drivers\mtd\Makefile

45. 添加文件u-boot-1.3.4\drivers\mtd\mtdconcat.c

46. 添加文件u-boot-1.3.4\drivers\mtd\mtdcore.c

47. 添加文件u-boot-1.3.4\\drivers\mtd\mtdpart.c

48. 添加文件夹u-boot-1.3.4\drivers\mtd\ubi

49. 添加文件夹u-boot-1.3.4\drivers\net

50. 添加文件夹 u-boot-1.3.4\drivers\rtc\

51.u-boot-1.3.4\fs\ext2\ext2fs.c

52. u-boot-1.3.4\fs\fat\fat.c

53. 添加和修改u-boot-1.3.4\include

54. u-boot-1.3.4\lib_arm\board.c

55. u-boot-1.3.4\lib_arm\bootm.c

56.u-boot-1.3.4\lib_arm\Makefile

57. 添加文件u-boot-1.3.4\lib_arm\rbtree.c

58. u-boot-1.3.4\net\eth.c

59. u-boot-1.3.4\net\net.c

60. 添加文件夹u-boot-1.3.4\tools\


上面是这次移植过程中修改和添加的大部分文件,由于文件涉及到的比较多,没有逐个展开,在以后的文章中在对遇到的一些困难再作说明


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值