Tech memo of imx27 pdk(4) -- Running linux-2.6.38 on imx27 pdk
来源:互联网 发布:windows搭建sip服务器 编辑:程序博客网 时间:2024/06/14 09:48
From Tech memo of imx27 pdk(1 ~ 3) we already know how to run linux-2.6.22 with imx27pdk patch on the platform. However, i checked Linux Kernel Archive today and download the latest stable version linux-2.6.38. I found this version already support imx27 pdk so i want to try it.
Fristly, cp arch/arm/configs/mx27_defconfig ./.config, and then make menuconfig to DIY your own system.
Secondly, vim Makefile and change from line191:
ARCH ?= arm
CROSS_COMPILE ?= /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
and then make zImage. Soon you can get kernel image under arch/arm/boot/zImage. Using this image to boot the system:
RedBoot> fis load kernel
... Read from 0x07ee0000-0x07eff000 at 0x00080000: .
... Read from 0x00100000-0x002c74d8 at 0x000a0000: ...............
RedBoot> exec -b 0x100000 -l 0x200000 -c "console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.10.212:/home/hongao_client/ltib/rootfs_fr_jffs2_img init=/linuxrc ip=192.168.10.119:192.168.10.1:192.168.10.1:255.255.255.0 fec_mac=00:04:9F:00:D4:8F"
entry=0xa0008000, target=0xa0008000
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38 (root@localhost.localdomain) (gcc version 4.1.2) #2 PREEMPT Thu Apr 14 22:11:43 SGT 2011
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX27PDK
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.10.212:/home/hongao_client/ltib/rootfs_fr_jffs2_img init=/linuxrc ip=192.168.10.119:192.168.10.1:192.168.10.1:255.255.255.0 fec_mac=00:04:9F:00:D4:8F
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126164k/126164k available, 4908k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc8800000 - 0xf4000000 ( 696 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0026000 ( 120 kB)
.text : 0xc0026000 - 0xc03703c4 (3369 kB)
.data : 0xc0372000 - 0xc03930c0 ( 133 kB)
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
3-Stack Debug board detected, rev = 0x0200
bio: create slab <bio-0> at 0
Switching to clocksource mxc_timer1
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc.
msgmni has been set to 246
io scheduler noop registered (default)
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
spi_imx imx27-cspi.1: probed
FEC Ethernet Driver
fec_enet_mii_bus: probed
i2c /dev entries driver
Driver for 1-wire Dallas network protocol.
i.MX SDHC driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:1f, irq=-1)
IP-Config: Complete:
device=eth0, addr=192.168.10.119, mask=255.255.255.0, gw=192.168.10.1,
host=192.168.10.119, domain=, nis-domain=(none),
bootserver=192.168.10.1, rootserver=192.168.10.212, rootpath=
PHY: 1:1f - Link is Up - 100/Full
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 120K
init started: BusyBox v1.6.1 () multi-call binary
starting pid 242, tty '': '/etc/rc.d/rcS'
Setting the hostname to freescale
Mounting /proc and /sys
Starting the hotplug events dispatcher udevd
udevd (251): /proc/251/oom_adj is deprecated, please use /proc/251/oom_score_adj instead.
Synthesizing initial hotplug events
Mounting filesystems
mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
Starting syslogd and klogd
Running depmod
WARNING: Couldn't open directory /lib/modules/2.6.38: No such file or directory
FATAL: Could not open /lib/modules/2.6.38/modules.dep.temp for writing: No such file or directory
Starting mxc-charger:
Running sysctl
Setting up networking on loopback device:
Setting up networking on eth0:
/etc/rc.d/init.d/network: line 46: udhcpc: command not found
Setting time from ntp server: north-america.pool.ntp.org
north-america.pool.ntp.org: Host name lookup failure
Starting inetd:
Starting the dropbear ssh server:
Starting qtopia
ls: /sys/class/input/input*: No such file or directory
Waiting for qcop (try 1)...
Waiting for qcop (try 2)...
Waiting for qcop (try 3)...
Waiting for qcop (try 4)...
Waiting for qcop (try 5)...
Failed to run touchscreen calibration since qcop could not run.
starting pid 374, tty '': '/bin/sh'
mx27# ls
bin etc linuxrc proc sys usr
dev home mnt root tmp var
dir lib opt sbin unit_tests
It seems touch screen driver and QT still have problems but anyway, system is up. Not bad. Let's go on and resolve these problems in the following sessions.
- Tech memo of imx27 pdk(4) -- Running linux-2.6.38 on imx27 pdk
- Tech memo of imx27 pdk (1) -- For kernel building on imx27 pdk with ltib
- Tech memo of imx27 pdk (2) -- For hacking linux booting code
- Tech memo of imx27 pdk(3) -- For network and rootfs mounting problems
- Linux wifi驱动调试 freescale imx27
- 读取mx31-pdk板voltage
- How to Download a PDK
- MX31 PDK Board Alpha Blending
- Android Build System (Android PDK)
- Android SDK PDK NDK详解
- Android SDK PDK NDK详解
- symbian PDK安装 (开源 开发)
- [Symbian源码]什么是SDK,PDK,ADT?
- Calibre xRC在 RF PDK的使用
- PDK 打包后 读excel 的解决方案
- memo of Linux C
- Cadence PDK Automation System (PAS) Release v03.05.003
- Android6.0 由PDK-TestingCamera 学习apk布局
- 下载用于调试的android源代码快照
- FCKeditor的JSP配置与使用
- Graphviz绘图
- debugging information corrupt; recompile module 的终极解决
- 编程之美--只考加法的面试题
- Tech memo of imx27 pdk(4) -- Running linux-2.6.38 on imx27 pdk
- FIRST集和FOLLOW集
- how to install software on ubuntu?
- 《重构》 — Java示例:影片出租店程序(2、单元测试)
- c++异常处理
- Update or compile the linux kernel
- tsung压力测试
- 10个iPhone开发网站、论坛、博客
- oracle 简体繁体转换