linux-3.6.6移植----基于mini6410

转载 2013年12月04日 18:02:10

zzzz:http://blog.csdn.net/longtian635241/article/details/8166614

1.从www.kernel.org上下载kernel-3.6.6.tar.bz2

2.解压tar jxfv kernel-3.6.6.tar.bz2

3.cd linux-3.6.6/

4.vi Makefile,修改

#ARCH ?= $(SUBARCH)

#CROSS_COMPILE ?=

ARCH ?= arm

#CROSS_COMPILE   ?= /usr/local/arm/4.3.2/bin/arm-linux-       (这样修改后编译时还是会有错误,显示没有arm-none-linux-gnueabi-gcc,不过设置下环境变量也能编译通过)

CROSS_COMPILE   ?= /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-    (这样修改省事省力,不需第五步

5.设置环境变量:export PATH=$PATH:/usr/local/arm/4.3.2/bin/arm-linux-

否则找不到arm-none-linux-编译器。这样就可以可以直接make尝试编译了!


6.这样修改后就可以使用

make s3c6400_defconfig

来生成对s3c6410的支持。 因为arch/arm/configs下面只有s3c6400_defconfig和6410

最相近。

 

7.这样修改后就可以使用

make s3c6400_defconfig

来生成对s3c6410的支持。 因为arch/arm/configs下面只有s3c6400_defconfig和6410最相近。

8.make menuconfig

System Type  ---> 

 -*- S3C64XX DMA                                                                             | | 
  | |                     [ ] SMDK6400                                                                                | | 
  | |                     [ ] A&W6410                                                                                 | | 
  | |                     [ ] MINI6410                                                                                | | 
  | |                     [ ] REAL6410                                                                                | | 
  | |                     [*] SMDK6410                                                                                | | 
  | |                           SMDK6410 MMC/SD slot setup (Use channel 0 only)  --->                                 | | 
  | |                     [ ]   Support Wolfson Microelectronics 1190-EV1 PMIC card                                   | | 
  | |                     [ ]   Support Wolfson Microelectronics 1192-EV1 PMIC card                                   | | 
  | |                     [ ] NCP                                                                                     | | 
  | |                     [ ] Airgoo HMT                                                                              | | 
  | |                     [ ] SmartQ 5                                                                                | | 
  | |                     [ ] SmartQ 7                                                                                | | 
  | |                     [ ] Wolfson Cragganmore 6410   

仅选择smdk6410,我的移植选择这个,但是你想偷懒也可以选择mini6410

9.make

10.烧进idea6410开发板,这是你发现能起来了,串口有输出了,但是分区信息等都没有!

注意:如果你选择mini6410编译,他已经移植了dm9000,分区,lcd支持!做如下处理就可以看到qt界面!

a:MTD分区支持

Device Drivers  --->

  <*> Memory Technology Device (MTD) support  ---> 

                          <*>   Direct char device access to MTD devices                                              | | 
  | |                     -*-   Common interface to block layer for MTD 'translation layers'                          | | 
  | |                     <*>   Caching block device access to MTD devices

b:DM9000支持

[*] Networking support  --->

Networking options  --->

 <*> Packet socket                                                                           | | 
  | |                     <*> Unix domain sockets                                                                     | | 
  | |                     <*>   UNIX: socket monitoring interface                                                     | | 
  | |                     < > Transformation user configuration interface (NEW)                                       | | 
  | |                     [ ] Transformation sub policy support (EXPERIMENTAL) (NEW)                                  | | 
  | |                     [ ] Transformation migrate database (EXPERIMENTAL) (NEW)                                    | | 
  | |                     [ ] Transformation statistics (EXPERIMENTAL) (NEW)                                          | | 
  | |                     < > PF_KEY sockets (NEW)                                                                    | | 
  | |                     [*] TCP/IP networking                                                                       | | 
  | |                     [*]   IP: multicasting                                                                      | | 
  | |                     [*]   IP: advanced router                                                                   | | 
  | |                     [*]     FIB TRIE statistics                                                                 | | 
  | |                     [*]     IP: policy routing                                                                  | | 
  | |                     [*]     IP: equal cost multipath                                                            | | 
  | |                     [*]     IP: verbose route monitoring                                                        | | 
  | |                     [*]   IP: kernel level autoconfiguration                                                                        //其他是网络必须,NFS支持这两项一定的选上!

                           [*]     IP: DHCP support                        

 

 Device Drivers  --->

 [*] Network device support  --->

[*]   Ethernet driver support (NEW)  --->

  <*>   DM9000 support                                                                        | | 
  | |                     [ ]     Force simple NSR based PHY polling (NEW)                                            | | 
  | |                     < >   Dave ethernet support (DNET) (NEW)                                                

c:NFS支持

b步全部做好后再

File systems  --->

  [*] Network File Systems  --->   //b要设置后才会出现

--- Network File Systems                                                                    | | 
  | |                     <*>   NFS client support                                                                    | | 
  | |                     <*>     NFS client support for NFS version 2 (NEW)                                          | | 
  | |                     <*>     NFS client support for NFS version 3 (NEW)                                          | | 
  | |                     [*]       NFS client support for the NFSv3 ACL protocol extension                           | | 
  | |                     <*>     NFS client support for NFS version 4                                                | | 
  | |                     [*]     Provide swap over NFS support                                                       | | 
  | |                     [*]   NFS client support for NFSv4.1 (EXPERIMENTAL)                                         | | 
  | |                     (kernel.org) NFSv4.1 Implementation ID Domain (NEW)                                         | | 
  | |                     [*]   Root file system on NFS                                                               | | 
  | |                     [*]   Use the legacy NFS DNS resolver      

d.上面步骤做完后能挂载nfs系统了

#设置bootcmd
setenv bootcmd nand read 0xc0008000 0x100000 0x300000\;bootm 0xc0008000

#设置NFS启动 bootargs
setenv bootargs "root=/dev/nfs nfsroot=192.168.1.228:/home/song/nfs_share ip=192.168.1.128:192.168.1.228:192.168.1.1:255.255.255.0:www.urbetter.com:eth0:off console=ttySAC0,115200"

e.但是没有可爱企鹅,配置:

      Device Drivers  --->

  Graphics support  --->

 < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->                   | | 
  | |                     < > Lowlevel video output switch controls                                                   | | 
  | |                     <*> Support for frame buffer devices  --->    | |                     <*>   Samsung S3C framebuffer support   (这个的选)                                               | | 
  | |                     [ ] Exynos Video driver support  --->                                                       | | 
  | |                     [ ] Backlight & LCD device support  --->                                                    | | 
  | |                         Console display driver support  --->              <*> Framebuffer Console support                                       | | 
  | |                     [*] Bootup logo  --->     | |                     [*]   Standard 224-color Linux logo

f.如果挂载文件系统不能进入系统一定的选上进程间通信选项

     General setup  --->                                                                     | | 
|                     [*] System V IPC    

g.所有的都配置好了还是没有反应,的修改代码

# vi mach-mini6410.c

将480*272的参数改为

static struct fb_videomode mini6410_lcd_type0_timing = {
 /* 4.3" 480x272 */
 .left_margin = 2,
 .right_margin = 2,
 .upper_margin = 2,
 .lower_margin = 2,
 .hsync_len = 41,
 .vsync_len = 10,
 .xres  = 480,
 .yres  = 272,
};

这样就可以看到图形界面了!

这其中有问题,不知道为啥,只将内核传进内存运行,usb鼠标是可用的,但是固化到falsh,挂载nfs就不能用了~求高人指点!

具体步骤:dnw c0008000

bootm c0008000 这样可以用

但:dnw c0008000

nand erase 100000 300000;nand write c0008000 100000 300000 这样usb鼠标就不能用了~按理如果驱动有问题内核都是一样的,为啥有一种情况可用额~提示错误

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x74300000
s3c2410-ohci s3c2410-ohci: init err (00000000 0000)
s3c2410-ohci s3c2410-ohci: can't start s3c24xx
s3c2410-ohci s3c2410-ohci: startup error -75
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -75


=========================================

linux-3.6.6移植

//-------------------------------------------------------------------------------------------- // 作...
  • longtian635241
  • longtian635241
  • 2012年11月15日 11:44
  • 1308

OK6410 uboot移植之sd启动

1  uboot移植 1.1  移植准备工作 1.1.1 安装交叉编译工具链 版本:arm-linux-gcc 4.4.1 环境:ubuntu14.04.01LTS   1.1.2建立OK6410配置...
  • u010346967
  • u010346967
  • 2015年07月07日 15:10
  • 1131

SD卡与MMC卡的区别

本文译至:http://home.impress.co.jp/magazine/dosvpr/q-a/0108/qa0108_2.htm
  • robertsong2004
  • robertsong2004
  • 2014年09月01日 13:17
  • 7944

移植属于自己的6410开发板的U-Boot

学习了几个月的关于嵌入式相关的知识,之前一直觉得自己能力不够,去研究uboot很有难度,现在通过几个月的学习,再去研究uboot应该可以理解了,于是就开始自己的移植之旅!        首先...
  • xingzouagain
  • xingzouagain
  • 2016年09月11日 11:49
  • 1337

6410的USB OTG外部电路连接分析

http://blog.sina.com.cn/s/blog_8bbf650701013maf.html 6410的USB OTG外部电路连接分析 首先6410开发板上的USB...
  • weichushun
  • weichushun
  • 2014年12月14日 16:44
  • 548

qt移植到OK6410开发板linux系统过程

操作系统:ubuntu 11.04 交叉编译工具链:arm-linux-gcc 4.3.2  源码:qt-everywhere-opensource-src-4.7.3.tar.gz 移植过程: ...
  • b07340114
  • b07340114
  • 2015年06月21日 22:11
  • 916

MMC、SD等存储卡的区别总结

目前市面上较常见的存储卡有SD、MMC、CF等,在这些卡的种类下又分了许多,下面来总结一下。 可参考wiki:https://en.wikipedia.org/wiki/Memory_card 1、M...
  • l289123557
  • l289123557
  • 2016年04月23日 22:46
  • 5360

从硬件层看SD/MMC(SPI模式)

现在讨论SD卡的硬件驱动: 1、首先对于SD卡,采取的是一答一应的模式(主机没发一次命令,SD卡就回应一次)。而对于SD卡的操作基于两方面:命令+内部寄存器,并且对于寄存器的操作也还是通过命令,所以命...
  • L_D_D
  • L_D_D
  • 2013年10月02日 21:06
  • 1705

Linux驱动中SD/MMC卡增加多个分区

【过程】 当前,Linux下sd/mmc卡的驱动已经实现。需要在此基础上实现,给这个mmc/sd块设备加多个分区。 有人会问,那等系统启动后,通过fdisk工具去分区不也可以吗?回答是,本身sd/mm...
  • lbaihao
  • lbaihao
  • 2015年07月22日 10:03
  • 1130

SD/MMC 内部寄存器

From: http://www.cnblogs.com/Efronc/archive/2010/03/27/1698474.html SD Card Registers Name   ...
  • hansel
  • hansel
  • 2016年08月06日 22:41
  • 950
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux-3.6.6移植----基于mini6410
举报原因:
原因补充:

(最多只允许输入30个字)