Pandaboard ES kernel

jc posted @ 2012年9月16日 04:16 in Pandaboard ES , 22250 阅读

    目前似乎还没有一个支持完整的内核配置,可能Pandaboard ES的有些驱动还在开发中吧。于是我使用目前开发中的内核,并使用其中的omap2plus_defconfig配置。这个配置似乎是涵盖了mach-omap2里面的所有设备的,所以应该是能启动起来的。

 

    git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

    cd linux

 

    修改其中的Makefile中

    ARCH            ?= arm

    CROSS_COMPILE   ?= arm-none-linux-gnueabi-

    这里有个疑虑,我使用的编译器是arm-2009q3的,不知能否支持ARMv7指令集呢,现不管,试下先。

 

    mkdir ../build-image

    make omap2plus_defconfig O=../build-image

    make O=../build-image -j4

    make O=../build-image uImage

 

    此时提示找不到mkimage指令,赶紧到build-boot/tools目录(见前一篇文章)下拷贝mkimage到/usr/bin。然后再来,OK啦!输出如下:

  Using /home/jc/panda/linux as source for kernel
  GEN     /home/jc/panda/build-image/Makefile
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[2]: “include/generated/mach-types.h”是最新的。
  CALL    /home/jc/panda/linux/scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-3.6.0-rc5-00315-g3f0c3c8-d
Created:      Sun Sep 16 22:54:17 2012
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4065584 Bytes = 3970.30 kB = 3.88 MB
Load Address: 80008000
Entry Point:  80008000
  Image arch/arm/boot/uImage is ready

 

    将uImage丢到SD卡boot分区,插入Pandaboard上电,OK!

 

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.6.0-rc5-00315-g3f0c3c8-dirty (jc@debian) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #12
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: OMAP4 Panda board
[    0.000000] Reserving 16777216 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] OMAP4460 ES1.1

......

[    2.475982] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.t.
[    2.489135] CPU1: stopping
[    2.491973] [<c001cc08>] (unwind_backtrace+0x0/0xf4) from [<c001a9b4>] (handle_IPI+0x130/0x15c)
[    2.501098] [<c001a9b4>] (handle_IPI+0x130/0x15c) from [<c00084f0>] (gic_handle_irq+0x58/0x60)
[    2.510131] [<c00084f0>] (gic_handle_irq+0x58/0x60) from [<c05033e4>] (__irq_svc+0x44/0x5c)
[    2.518859] Exception stack(0xee06ff88 to 0xee06ffd0)
[    2.524169] ff80:                   00008348 00000001 00000000 ee0660c0 ee06e000 c07ce448
[    2.532714] ffa0: c050e4e8 c0755e20 00000000 412fc09a c0756040 00000000 00000001 ee06ffd0
[    2.541290] ffc0: 00008349 c0015f54 20000113 ffffffff
[    2.546569] [<c05033e4>] (__irq_svc+0x44/0x5c) from [<c0015f54>] (default_idle+0x20/0x44)
[    2.555145] [<c0015f54>] (default_idle+0x20/0x44) from [<c00167a8>] (cpu_idle+0x9c/0x114)
[    2.563690] [<c00167a8>] (cpu_idle+0x9c/0x114) from [<804fc274>] (0x804fc274)

 

    因为SD卡的rootfs分区还是空的,内核跑到这无法启动init进程,接下来就是构建根文件系统了!

   

Avatar_small
fay 说:
2012年12月19日 08:16

你好,请问最后在Panda board板子上的根文件系统是怎么布置的呢?
谢谢!

Avatar_small
dog 说:
2013年7月01日 21:50

您好~不好意思打擾一下..
我照著您說的步驟做,但是最後的 uImage 無法產生,錯誤訊息為:

multiple (or no) load address:
This is incompatible with uImages
Specify LOADADDR on the commandline to build an uImage

請問能提供任何意見可以排除此狀況嗎?
謝謝!

Avatar_small
johnny 说:
2013年9月03日 17:30

Hi,最近也在倒腾pandaboard-es,希望有机会向你请教,我的邮箱是lenard.lea@gmail.com
谢谢.

Avatar_small
embedded 说:
2013年12月08日 20:38

uImage 是由 ELF格式的 vmlinux 生成的, 生成所使用的工具是mkimage, 你将mkimage所在路径加入path, 或者直接使用相对路径引用, 就会出现mkimage的help命令行
如下
Usage: mkimage -l image
-l ==> list image header information
mkimage -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
-A ==> set architecture to 'arch'
-O ==> set operating system to 'os'
-T ==> set image type to 'type'
-C ==> set compression type 'comp'
-a ==> set load address to 'addr' (hex)
-e ==> set entry point to 'ep' (hex)
-n ==> set image name to 'name'
-d ==> use image data from 'datafile'
-x ==> set XIP (execute in place)

其中的-a , 它就是你 在构建 linux kernel的image的时候定义的loading的位置, 在makefile中, 应该诸如下面这样
load-$(XXXX) += 0x80200000

在使用mkimage的时候, 你就会将0x80200000 像这样传递给 mkimgae
mkimage -a 0x80200000 -x xxx -x xxx

而 -e 所指的entry address, 你可以通过 交叉工具的 xxxx-readelf -h 中的 entry point address 来得到,
其实这样都可以做成一个 shell script 去做, 就自动化了

Avatar_small
Bennelong 说:
2019年5月01日 23:45

This panda board is looking amazing for their users and hope people will like this one way that is also easy. Buyers of written papers can also read paper owl reviews  before purchasing of them that is very helpful for them.

Avatar_small
cleaning services 说:
2019年9月17日 22:03

“Regular cleaning” is without a doubt hiring maids you need to do what it is easy to usually achieve alone, but an important maid’s assistance clarifies that it's easier. Maids could actually help with regular home cleaning, laundry, . . .. On the additional hand, “deep cleaning” is over by professionals no one can expertly beautify dusty residences.

Avatar_small
north bama real esta 说:
2019年11月14日 06:29

Visit a position being an information technologies consultant or are an impartial consultant. Consultants using the educational history and skills get the chance to work with an set up company or even work individually.

Avatar_small
wanamassa reale stat 说:
2020年3月24日 01:57

So you ought to be an achiever real residence investor? Good, you should have your goal setting techniques in path. In order to get the greatest prospect of achieving an individual's goals you need setting SHREWD goals. These days, not any Webster characterization of shrewd, but relatively SMART as being an acronym meant for Specific, Measurable, Available, Realistic, together with Timely.

Avatar_small
north bama real esta 说:
2020年3月24日 01:57

Properties is any legal word encompassing get with something installed on the get like homes, particularly real estate. These happen to be immobile or simply fixed real estate. It stands out as the common jargon applied to several jurisdictions which include Australia, Canada, United Kingdom and the country.

Avatar_small
atlanta black busine 说:
2020年3月24日 01:58

One origin of capital the fact that businesses regularly overlook is certainly Vendor Credit ranking. Without an intense banking rapport and credit profile dealing utilizing any loan provider as a small venture looking for that traditional loan or simply a working business line of credit can be extremely hard and depressing.

Avatar_small
freeze business rate 说:
2020年3月24日 01:58

For a home owner in addition to a business fella brings alongside it some sort of overwhelming position of responsibility to ensure the safety of those you love. Secondly, as company owner you may have worked really difficult to deal a firm as well as being your directly to protect an individual's investment in the right way.

Avatar_small
shawcor success 说:
2020年3月24日 01:59

To be joyful in business it is critical to have kind of knowledge. To elaborate to the term "right knowledge", one needs to be updated by using relevant, contemporary plus practical familiarity with concepts. Management education includes a lot with core, integrative and functional content.

Avatar_small
maid agency dubai 说:
2020年4月28日 23:34

May well not often be an exaggeration to talk about that People like Halloween parties. It is definitely clear that him and i love them! People however ages, events, economic background scenes, creeds plus temperaments all of enjoy celebrating Halloween per form and also another. Decorating your property, hosting your Halloween social gathering, going secret or getting rid of, and carving jack-o-lanterns are especially proof of your. What a lot of adults enjoy is a excuse to receive dressed right up as different things from our-self.

Avatar_small
wall painting servic 说:
2020年4月28日 23:34

By using better dwellings and back gardens picture plumber software, you will repaint plus remake all various forms of surfaces in the virtual dwelling. This is actually a faster plus easier technique to get an overall view of your abode projects very last look. It you will save time plus money as you're need never redo a projects often. In the easiest way, it helps you view the home plan in advance of pouring in a large amount just to acquire it changed after.

Avatar_small
live in maids dubai 说:
2021年6月06日 20:20

Interchanging the housecleaning product will to bring a considerable change in your home. So, it's always highly suggested will not use whatever regular cleaning for erasing the really difficult stains within your floors or possibly kitchen wall structure. Instead of the, using cleaning that comprises of vegetable lube or glycerine would be highly important.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter