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


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

相关文章推荐

尚观6410开发板移植linux 3.6.6问题记录及经验小结

把开发板右上角的红色启动选项开关,两个都拨到下面(NAND),连接串口,已经内置了uboot 1.16。 根文件系统使用ext2的ramdisk,由于网卡无法驱动故无法使用nfs的根文件系统,网卡驱动...

linux-3.6.6移植

//-------------------------------------------------------------------------------------------- // 作...

基于S3C2440的Linux-3.6.6移植——声卡驱动

Linux的ALSA声卡驱动较为复杂,它需要注册多个平台设备。在mach-zhaocj2440.c文件中的平台设备数组内一共有四个与ALSA相关的平台设备: &s3c_device_iis, &u...
  • zhaocj
  • zhaocj
  • 2014年03月05日 11:12
  • 4903

linux-3.6.6按键驱动移植

//-------------------------------------------------------------------------------------------- // 作...

基于FL2440的3.6.6内核移植出现Uncompressing Linux... done, booting the kernel.

一前期准备工作 二修改内核源码 1 修改编译器 2 增加配置项 三错误记录 1 内核启动后串口打印信息停留在Uncompressing Linux done booting the kernel ...

linux-3.6.6自己动手移植

//-------------------------------------------------------------------------------------------- // 作...

基于S3C2440的Linux-3.6.6移植——DM9000网卡驱动移植

Linux-3.6.6很好的支持了DM9000,因此对于S3C2440芯片来说无需进行任何修改,甚至连menuconfig都已经默认配置了网卡驱动。但我们还需要设置网卡的MAC和IP等信息。有许多方法...
  • zhaocj
  • zhaocj
  • 2014年03月24日 17:04
  • 4378

基于S3C2440的Linux-3.6.6移植——ADC的移植

在linux-3.6.6中,系统已经有了关于s3c2440的ADC通用驱动程序文件——arch/arm/plat-samsung/adc.c,但还没有应用层文件,如果要想使ADC工作,并利用系统已有的...
  • zhaocj
  • zhaocj
  • 2013年08月09日 23:10
  • 3062

mini6410成功移植OPENCV-2.0.0实现人脸检测

        研究这个东西很长时间了,以前是想在arm9上实现这个东西,但是夭折了,现在正好手里面有mini6410的板子,而且对浮点数运算支持较好。所以就试了试。 实现的功能:移植opencv-...
  • gfocean
  • gfocean
  • 2011年04月22日 13:11
  • 14329

Mini6410上移植mplayer

当然 这个是没有做到硬解码的,硬解码的效果很棒,但还没摸索清楚,可以去看看友善之臂做的那个带硬解码效果的,很棒~Mplayer版本:MPlayer-1.0rc2交叉编译器:Arm-linux-gcc ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux-3.6.6移植----基于mini6410
举报原因:
原因补充:

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