uboot 启动远程 Kernel(TFTP)以及挂载远程 ROOTFS(NFS)

更新时间:2023-04-09 17:28:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Tiny210v2( S5PV210 )平台下:

利用uboot启动远程Kernel(TFTP)以及挂载远程ROOTFS(NFS)

0. 准备工作

1. 编译uboot

2. 将uboot写入SD卡

3. 编译kernel,设置其可以通过NFS挂载根文件系统

4. 开发环境安装TFTP服务器

5. 开发环境安装NFS服务器

6. 目标环境设置uboot参数

7. 制作根文件系统(optional)。

8. 完整的启动LOG。

有几位网友发信问我uboot挂载文件系统的方法,其实这个部分也不是我原创的,大部分都是参考其他网友的方法,现在将我的手顺记录下来,希望对大家有所帮助。

整体思路大概是这样:

* 将uboot烧写到SD卡。

* 从SD卡启动系统,SD卡中的uboot通过TFTP协议将远程的的Kernel下载到内存中。 * uboot将内核参数设定为ROOT分区为远程的NFS-SERVER共享的一个目录,并JU MP到内核的START ADDRESS。

* kernel自解压,并JUMP 到解压后的新的内核START ADDRESS,内核正常启动。 * 最后通过内核通过uboot设置的ROOTFS参数得知根文件系统在远程,并通过NFS 挂载ROOTFS。

* 根文件系统挂载完了以后,就会去执行init程序,init程序被uboot指定为/linuxrc。

我的开发环境是ubunto 12.04LTS。

目标系统的内核是3.0.8 ,源代码位于/opt/S5PV210/rootfs/usr/src/linux-3.0.8。

uboot的源代码位于/opt/S5PV210/rootfs/usr/src/opencsbc-u-boot。

目标环境的根文件系统位于/opt/S5PV210/rootfs。

交叉编译器位于/opt/linaro-gcc473-eglibc216-armv7a-neon。

0. 准备工作

编译uboot和linux内核都需要使用到交叉编译器,所以需要确保shell 的PATH 环境中包含了你的交叉编译器的路径。

比如我的PATH为:(通过export查看)

declare -x PATH="/usr/lib/lightdm/lightdm:/opt/linaro-gcc473-eglibc216-armv7a-neon/ bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

这样,就可以直接查找到arm-linux-gcc这条命令了,不许要输入arm-linux-gcc的绝对路径。

1. 编译uboot

uboot来自于kasim修改的uboot,原帖在84d922d610661ed9ac51f3dd/read.php?tid-1600 1。

可以通过https://84d922d610661ed9ac51f3dd/opencsbc/u-boot/trees/mini210_linaro-2012.11-stable 右边的download mini210_linaro-2012.11-stable as tar.gz 这个按钮获取到打包的源代码。

将源代码下载下来以后,解压到某一个目录,我机器上是位于/opt/S5PV210/rootfs/usr/ src/opencsbc-u-boot 这个目录。进入到这个目录。

首先配置uboot是针对tiny210 环境的。tiny210v2 也是使用的这个配置项:

复制代码

1. make ARCH=arm CROSS_COMPILE=arm-linux- tiny210_config

然后才是真正的编译uboot:

复制代码

1. make ARCH=arm CROSS_COMPILE=arm-linux- all spl

编译完成以后,就可以看到uboot的二进制文件spl/tiny210-spl.bin 和uboot.bin。

另外还有一个用于制作uImage的工具tool/mkimage。为了方便,把这个文件拷贝到/

usr/bin:

复制代码

1. sudocp tool/mkimage /usr/bin/

2. 将uboot写入SD卡

注意,这部需要特别留心,别因为误写入,把你的硬盘给弄坏了。

注意,SD卡的内容最好备份好。

将SD卡放到读卡器里面,并将SD卡读卡器接入开发环境,在我的环境中,SD卡会被识别为/dev/sdc。

通过下面的命令将uboot写入SD卡,保证这个SD卡可以启动。

复制代码

1. sudoddiflag=dsyncoflag=dsync if=spl/tiny210-spl.bin of=/dev/sdc seek=1

2. sudoddiflag=dsyncoflag=dsync if=u-boot.bin of=/dev/sdc seek=49

如果怕写入不同步,可以再执行一下 sync 这个命令,保证cache都写入到磁盘中。

到此为止,就可以通过SD卡启动uboot了。

3. 编译kernel,设置其可以通过NFS挂载根文件系统

光盘中带的内核,默认不支持从NFS挂载ROOTFS。需要重新配置并编译内核。

在/opt/S5PV210/rootfs/usr/src/linux-3.0.8目录下,通过make menuconfig启动ncurse s图形配置界面。

下面几个个内核配置项,必须选中。

复制代码

1. * Networking support -> Networking options ->IP:kernel level autoconfigurati

on

注意,这个选项下面的IP:DHCP support / IP:BOOTP support / IP:RARP aupport 不能选。

因为我的开发环境中没有安装DHCP server。开发板的IP 是在内核启动参数中指定的。

复制代码

1. * File systems -> Network File System -> NFS client support

2. * File systems -> Network File System -> NFS client support for NFS versio

n 3 或者4

3. * File systems -> Network File System -> Root file system on NFS

将退出配置,并保存。

执行下面的命令生成uImage内核镜像文件,这个过程其实是先生成了zImage,然后调

用了刚才uboot的那个mkimage生成uImage。

复制代码

1. make uImage

下面的LOG表明uImage生成了,位于arch/arm/boot/uImage。

复制代码

1. CHK include/linux/version.h

2. CHK include/generated/utsrelease.h

3. make[1]: `include/generated/mach-types.h' is up to date.

4. CALL scripts/checksyscalls.sh

5. CHK include/generated/compile.h

6. Kernel: arch/arm/boot/Image is ready

7. SHIPPED arch/arm/boot/compressed/lib1funcs.S

8. AS arch/arm/boot/compressed/lib1funcs.o

9. LD arch/arm/boot/compressed/vmlinux

10. OBJCOPY arch/arm/boot/zImage

11. Kernel: arch/arm/boot/zImage is ready

12. UIMAGE arch/arm/boot/uImage

13. Image Name: Linux-3.0.8-TINY210V2+

14. Created: Wed Jan 23 21:10:56 2013

15. Image Type: ARM Linux Kernel Image (uncompressed)

16. Data Size: 3555872 Bytes = 3472.53 kB = 3.39 MB

17. Load Address: 20008000

18. Entry Point: 20008000

19. Image arch/arm/boot/uImage is ready

编译内核的时候,如果你使用的是4.6以后的gcc,需要在Makefile中添加-mno-unali

gned-access 给KBUILD_CFLAGS 防止内核解压完以后启动不了。

复制代码

1.367 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigrap

hs \

2.368 -fno-strict-aliasing -fno-common \

3.369 -Werror-implicit-function-declaration \

4.370 -Wno-format-security \

5.371 -fno-delete-null-pointer-checks \

6.372 -mno-unaligned-access

如果你生成的内核有问题,可以试一试我的内核配置文件my_config。

4. 开发环境安装TFTP服务器

接下来,就是要在开发环境上安装TFTP 服务器,使开发板可以通过TFTP协议下载uI mage这个文件。

在ubuntu下,可以通过下面的命令安装TFTP 服务器,这个服务是通过inet监听的。复制代码

1. sudo apt-get install atftpdopenbsd-inetd

安装完以后,需要配置一下TFTP 的默认查找目录,我将其设定为/srv/tftp:

确认/etc/inetd.conf文件中有如下一行:

复制代码

1. #:BOOT: TFTP service is provided primarily for booting. Most sites

2. # run this only on machines acting as "boot servers."

3. tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/t

ftp

因为TFTP 服务主要是给uboot提供内核镜像文件,为了避免每次内核编译完以后都拷贝到/srv/tftp目录中,

我在/srv/tftp目录中,建立了一个符号文件,指向/opt/S5PV210/rootfs/usr/src/linux-3.

0.8/arch/arm/boot/uImage。

复制代码

1. ln -s /opt/S5PV210/rootfs/usr/src/linux-3.0.8/arch/arm/boot/uImage /srv/tf

tp/uImage

可以通过下面的命令重启inetd,保证这个supper服务器能够监听TFTP 端口:

复制代码

1. sudo service openbsd-inetd restart

可以通过查看端口确认inetd是否真的在监听TFTP 端口:

复制代码

1. zoulz@Seagate:/tmp$ netstat -a | grep tftp

2. udp 0 0 *:tftp *:*

可以通过下面的命令测试一下TFTP 服务是否正常工作:

复制代码

1. zoulz@Seagate:/tmp$ tftp localhost

2. tftp> get uImage

3. Received 3578106 bytes in 0.3 seconds

5. 开发环境安装NFS服务器

接下来是配置NFS 服务器,用于开发板上内核启动以后挂载开发环境的ROOTFS。

通过下面的命令安装nfs服务器:

复制代码

1. sudo apt-get install nfs-kernel-server

安装完成以后,还需要修改/etc/exports 文件,设置NFS 共享的文件目录。我们需要

将/opt/S5PV210/rootfs设置为NFS共享目录。

复制代码

1. # Example for NFSv2 and NFSv3:

2. # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,syn

c,no_subtree_check)

3. #

4. # Example for NFSv4:

5. # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)

6. # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)

7. #

8. /opt/S5PV210/rootfs *(rw,sync,no_subtree_check,no_root_squash)

每一次修改/etc/exports 这个文件,都需要重新启动NFS 服务器:

复制代码

1.sudo service nfs-kernel-server restart

可以通过下面的命令测试NFS 服务器是否设置正确:

复制代码

1. zoulz@Seagate:/tmp$ rm a b

2. zoulz@Seagate:/tmp$ mkdir /tmp/a

3. zoulz@Seagate:/tmp$ sudo mount -t nfs -o nolock localhost:/opt/S5PV210

/rootfs /tmp/a

4. zoulz@Seagate:/tmp$ ls /tmp/a

5. bin dev etc home lib linuxrc proc root run sbin sys tmp usr var

6. zoulz@Seagate:/tmp$ ls /opt/S5PV210/rootfs

7. bin dev etc home lib linuxrc proc root run sbin sys tmp usr var

也可以通过df命令查看挂载情况:

复制代码

1. zoulz@Seagate:/tmp$ df

2. Filesystem 1K-blocks Used Available Use% Mounted on

3. localhost:/opt/S5PV210/rootfs 125439744 36394112 89045632 30% /tmp

/a

6. 目标环境设置uboot参数

注意:ubuntu的network manager,如果开发板和开发环境的PC直连的话,每次开发板哪掉电,开发环境PC会检测为网络未链接,

nm 就会将已经设置好的网卡down 掉。这在开发板reset的时候特别讨厌,你得每次都重新去设置PC的IP地址。

因此我将桌面右上角的network manager的Enable Networking 设置为不选中,禁止network manager 去管理网络。

然后在终端里通过下面的命令,将网卡设置为192.168.1.5,这样每次开发板reset就不

用再设置开发环境PC的IP了。

复制代码

1. sudoifconfig eth0 19

2.168.1.5

当然,如果你的开发板和开发环境PC都是链接到路由器或者HUB,就没有这个烦恼。

现在所有的东西都准备好了。将SD卡插入开发板,并调整switch,设置从SD卡启动系统。

正常情况下,就应该能够看到uboot的界面了(FriendlyLEG-TINY210 )了:

在uboot的shell中,通过setenv命令设置相关参数。

复制代码

1. setenvbaudrate 115200

2. setenvstderr serial

3. setenvstdin serial

4. setenvstdout serial

5. setenvbootdelay 3

6. setenvethact dm9000

7. setenvethaddr 00:40:5c:26:0a:5b

8. setenvgatewayip 192.168.1.1

9. setenvipaddr 192.168.1.80

10. setenv netmask 255.255.255.0

11. setenvserverip 192.168.1.5

12. setenvbootargs root=/dev/nfsrwnfsroot=$serverip:/opt/S5PV210/rootfs,nolo

ck,tcpip=$ipaddr console=ttySAC0,115200 ctp=1 kgdboc=ttySAC0,115200

13. setenvbootcmd "tftp 21000000 uImage;bootm 21000000"

bootcmd参数中的tftp 21000000 用于:通过TFTP 命令,将192.168.1.5 的/srv/tft p/uImage下载到0x21000000 这个位置。

bootcmd参数中的bootm 21000000 用于:uboot将CPU执行权地交给0x21000000 这个位置的内核镜像,也就是启动内核。

bootargs参数用于设置内核的启动参数,其中root=/dev/fs rwnfsroot=$serverip:/opt/S5 PV210/rootfs,nolock,tcp告诉内核通过NFS启动,

根文件系统位于192.168.1.5:/opt/S5PV210/rootfs

NFS 的参数为nolock,tcp,用于防止udp不稳定导致NFS 读取NG 的情况。

ip=$ipaddr设置开发板自身的ip地址为192.168.1.80 。

通过saveenv将上面的参数写入到SD卡中,这样就不用每次reset都输入一遍uboot 的参数了。

通过boot 命令,将CPU 执行权专递给Kernel。

7. 制作根文件系统(optional)。

待续,busybox + toolchain。

8. 完整的启动LOG。

复制代码

1.root@Seagate:/tmp# minicom /dev/ttyS0

2.

3.Welcome to minicom 2.5

4.

5.OPTIONS: I18n

84d922d610661ed9ac51f3ddpiled on May 2 2011, 00:39:2

7.

7.Port /dev/ttyS0

8.

9.Press CTRL-A Z for help on special key

s

10.

11.OKOK

12.

13.U-Boot 2013.01-rc2 (Jan 07 2013 - 10:18:16) for FriendlyLEG-TINY21

14.

15.CPU: S5PC110@1000MHz

16.

17.Board: FriendlyLEG-TINY210

18.DRAM: 512 MiB

19.WARNING: Caches not enabled

20.

21.PWM Moudle Initialized.

22.GPD0CON : 1111, GPD0DAT : e

23.NAND: 2048 MiB

24.MMC: SAMSUNG SD/MMC: 0, SAMSUNG SD/MMC: 1

25.In: serial

26.Out: serial

27.Err: serial

84d922d610661ed9ac51f3dd: dm9000

29.Hit any key to stop autoboot: 0

30.dm9000 i/o: 0x88001000, id: 0x90000a46

31.DM9000: running in 16 bit mode

32.MAC: 00:40:5c:26:0a:5b

33.operating at 100M full duplex mode

84d922d610661ed9ac51f3dding dm9000 device

35.TFTP from server 192.168.1.5; our IP address is 192.168.1.80

36.Filename 'uImage'.

37.Load address: 0x21000000

38.Loading: #############################################

####################

39.###############################################

##################

40.###############################################

##################

41.###############################################

##################

42.###############################################

##################

43.###############################################

##################

44.###############################################

##################

45.###############################################

##################

46.###############################################

##################

47.###############################################

##################

48.#############################################

49.done

50.Bytes transferred = 3555936 (364260 hex)

51.## Booting kernel from Legacy Image at 21000000 ...

52.Image Name: Linux-3.0.8-TINY210V2+

53.Image Type: ARM Linux Kernel Image (uncompressed)

54.Data Size: 3555872 Bytes = 3.4 MiB

55.Load Address: 20008000

56.Entry Point: 20008000

57.Verifying Checksum ... OK

58.Loading Kernel Image ... OK

59.OK

60.

61.Starting kernel ...

62.

63.Uncompressing Linux... done, booting the kernel.

64.[ 0.000000] Initializing cgroupsubsyscpu

65.[ 0.000000] Linux version 3.0.8-TINY210V2+ (zoulz@Seagate) (gcc version 4.

7.3 20121205 (prerelease) (crosstool-NG hg+unknown-20130103.094521 - S5P

V210) ) #5 PREEMPT Wed Jan 23 10:04:06 CST 2013

66.[ 0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c

7f

67.[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

68.[ 0.000000] Machine: MINI210

69.[ 0.000000] Memory policy: ECC disabled, Data cache writeback

70.[ 0.000000] CPU S5PV210/S5PC110 (id 0x43110220)

71.[ 0.000000] s5pv210_init_clocks: initializing clocks

72.[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics

73.[ 0.000000] s5pv210_setup_clocks: registering clocks

74.[ 0.000000] s5pv210_setup_clocks: clkp0 = 14131440, clkp1 = 00000400

75.[ 0.000000] s5pv210_setup_clocks: xtal is 24000000

76.[ 0.000000] S5PV210: PLL settings, A=1000000000, M=667000000, E=80000

000 V=54000000

77.[ 0.000000] S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=16

6750000

78.[ 0.000000] HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLK

P=66700000

79.[ 0.000000] sclk_dmc: source is sclk_a2m (0), rate is 200000000

80.[ 0.000000] sclk_onenand: source is hclk_dsys (1), rate is 166750000

81.[ 0.000000] uclk1: source is mout_mpll (6), rate is 66700000

82.[ 0.000000] uclk1: source is mout_mpll (6), rate is 66700000

83.[ 0.000000] uclk1: source is mout_mpll (6), rate is 66700000

84.[ 0.000000] uclk1: source is mout_mpll (6), rate is 66700000

85.[ 0.000000] sclk_mixer: source is sclk_dac (0), rate is 54000000

86.[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000

87.[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000

88.[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000

89.[ 0.000000] sclk_cam0: source is ext_xtal (0), rate is 24000000

90.[ 0.000000] sclk_cam1: source is ext_xtal (0), rate is 24000000

91.[ 0.000000] sclk_fimd: source is ext_xtal (0), rate is 24000000

92.[ 0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857

93.[ 0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857

94.[ 0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000

95.[ 0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000

96.[ 0.000000] sclk_mfc: source is sclk_a2m (0), rate is 200000000

97.[ 0.000000] sclk_g2d: source is sclk_a2m (0), rate is 200000000

98.[ 0.000000] sclk_g3d: source is sclk_a2m (0), rate is 200000000

99.[ 0.000000] sclk_csis: source is ext_xtal (0), rate is 24000000

100.[ 0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000

101.[ 0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000

102.[ 0.000000] sclk_pwi: source is ext_xtal (0), rate is 24000000

103.[ 0.000000] sclk_pwm: source is ext_xtal (0), rate is 24000000

104.[ 0.000000] s5p: 36864 kbytes system memory reserved for mfc at 0x3dbf5 000, 0-bank base(0x3dbf5000)

105.[ 0.000000] s5p: 36864 kbytes system memory reserved for mfc at 0x3b7f5 000, 1-bank base(0x00000000)

106.[ 0.000000] s5p: 6144 kbytes system memory reserved for fimc0 at 0x3b1f 5000, 1-bank base(0x00000000)

107.[ 0.000000] s5p: 16 kbytes system memory reserved for fimc1 at 0x3b1f10 00, 1-bank base(0x00000000)

108.[ 0.000000] s5p: 6144 kbytes system memory reserved for fimc2 at 0x3abf 1000, 1-bank base(0x00000000)

109.[ 0.000000] s5p: 8192 kbytes system memory reserved for jpeg at 0x3a3f1 000, 0-bank base(0x3a3f1000)

110.[ 0.000000] s5p: 13060 kbytes system memory reserved for fimd at 0x3973 0000, 1-bank base(0x00000000)

111.[ 0.000000] s5p: 8192 kbytes system memory reserved for g2d at 0x38f300 00, 0-bank base(0x38f30000)

112.[ 0.000000] On node 0 totalpages: 102203

113.[ 0.000000] Normal zone: 1024 pages used for memmap

114.[ 0.000000] Normal zone: 0 pages reserved

115.[ 0.000000] Normal zone: 101179 pages, LIFO batch:31

116.[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

117.[ 0.000000] pcpu-alloc: [0] 0

118.[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 101179

119.[ 0.000000] Kernel command line: root=/dev/nfsrwnfsroot=192.168.1.5:/opt/ S5PV210/rootfs,nolock,tcpip=192.168.1.80 console=ttySAC0,115200 ctp=1 kgdb oc=ttySAC0,115200

120.[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)

121.[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 byte s)

122.[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) 123.[ 0.000000] Memory: 399MB 0MB = 399MB total

124.[ 0.000000] Memory: 396940k/512416k available, 11872k reserved, 0K high mem

125.[ 0.000000] Virtual kernel memory layout:

126.[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)

127.[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)

128.[ 0.000000] DMA : 0xff000000 - 0xffe00000 ( 14 MB)

129.[ 0.000000] vmalloc : 0xe0800000 - 0xfd000000 ( 456 MB)

130.[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)

131.[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)

132.[ 0.000000] .init : 0xc0008000 - 0xc002d000 ( 148 kB)

133.[ 0.000000] .text : 0xc002d000 - 0xc06911ec (6545 kB)

134.[ 0.000000] .data : 0xc0692000 - 0xc06d9c40 ( 288 kB)

135.[ 0.000000] .bss : 0xc06d9c64 - 0xc071e000 ( 273 kB)

136.[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CP Us=1, Nodes=1

137.[ 0.000000] Preemptible hierarchical RCU implementation.

138.[ 0.000000] NR_IRQS:393

139.[ 0.000000] VIC @fd000000: id 0x00041192, vendor 0x41

140.[ 0.000000] VIC @fd010000: id 0x00041192, vendor 0x41

141.[ 0.000000] VIC @fd020000: id 0x00041192, vendor 0x41

142.[ 0.000000] VIC @fd030000: id 0x00041192, vendor 0x41

143.[ 0.000000] mult[140737]

144.[ 0.000000] max_delta_ns[2937815369]

145.[ 0.000000] min_delta_ns[30517]

146.[ 0.000000] rate[32768]

147.[ 0.000000] HZ[256]

148.[ 0.000000] Console: colour dummy device 80x30

149.[ 0.000000] console [ttySAC0] enabled

150.[ 0.491824] Calibrating delay loop... 994.84 BogoMIPS (lpj=1941504) 151.[ 0.515576] pid_max: default: 32768 minimum: 301

152.[ 0.515827] Mount-cache hash table entries: 512

153.[ 0.516312] Initializing cgroupsubsys debug

154.[ 0.516362] Initializing cgroupsubsyscpuacct

155.[ 0.516419] Initializing cgroupsubsys freezer

156.[ 0.520295] CPU: Testing write buffer coherency: ok

157.[ 0.530660] print_constraints: dummy:

158.[ 0.530949] NET: Registered protocol family 16

159.[ 0.549032] S3C Power Management, Copyright 2004 Simtec Electronics 160.[ 0.565355] fimd at 0x39730000

161.[ 0.565467] hsmmc0: sclk_mmc: source is mout_mpll, rate is 47642857 162.[ 0.565534] hsmmc1: sclk_mmc: source is mout_mpll, rate is 47642857 163.[ 0.565594] hsmmc2: sclk_mmc: source is mout_mpll, rate is 47642857 164.[ 0.565654] hsmmc3: sclk_mmc: source is mout_mpll, rate is 47642857 165.[ 0.573248] S5PV210: Initializing architecture

166.[ 0.577794] s3c-adc s5pv210-adc: attached adc driver

167.[ 0.581035] s3c24xx-pwm s3c24xx-pwm.0: tin at 66700000, tp at 667000 00, tin=pclk, base 0

168.[ 0.590202] print_constraints: pd_tv_supply: 5000 mV normal

169.[ 0.595088] print_constraints: pd_lcd_supply: 5000 mV normal

170.[ 0.600797] print_constraints: pd_g3d_supply: 5000 mV normal

171.[ 0.606515] print_constraints: pd_mfc_supply: 5000 mV normal

172.[ 0.612256] print_constraints: pd_audio_supply: 5000 mV normal

173.[ 0.679867] bio: create slab at 0

174.[ 0.682650] SCSI subsystem initialized

175.[ 0.688076] usbcore: registered new interface driver usbfs

176.[ 0.688866] usbcore: registered new interface driver hub

177.[ 0.689384] usbcore: registered new device driver usb

178.[ 0.690919] s3c-i2c s3c2440-i2c.0: slave address 0x10

179.[ 0.690978] s3c-i2c s3c2440-i2c.0: bus frequency set to 378 KHz

180.[ 0.694312] s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter

181.[ 0.698209] s3c-i2c s3c2440-i2c.1: slave address 0x10

182.[ 0.703096] s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz

183.[ 0.709538] s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter

184.[ 0.714317] s3c-i2c s3c2440-i2c.2: slave address 0x10

185.[ 0.719208] s3c-i2c s3c2440-i2c.2: bus frequency set to 260 KHz

186.[ 0.726196] s3c-i2c s3c2440-i2c.2: i2c-2: S3C I2C adapter

187.[ 0.732195] Advanced Linux Sound Architecture Driver Version 1.0.24. 188.[ 0.737949] Bluetooth: Core ver 2.16

189.[ 0.740770] NET: Registered protocol family 31

190.[ 0.744847] Bluetooth: HCI device and connection manager initialized

191.[ 0.751091] Bluetooth: HCI socket layer initialized

192.[ 0.755912] Bluetooth: L2CAP socket layer initialized

193.[ 0.760971] Bluetooth: SCO socket layer initialized

194.[ 0.766890] cfg80211: Calling CRDA to update world regulatory domain 195.[ 0.773644] Switching to clocksourceclock_source_systimer

196.[ 0.781205] Switched to NOHz mode on CPU #0

197.[ 0.814450] NET: Registered protocol family 2

198.[ 0.814719] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) 199.[ 0.815436] TCP established hash table entries: 16384 (order: 5, 131072 by tes)

200.[ 0.815751] TCP bind hash table entries: 16384 (order: 6, 327680 bytes) 201.[ 0.817762] TCP: Hash tables configured (established 16384 bind 16384) 202.[ 0.823843] TCP reno registered

203.[ 0.826926] UDP hash table entries: 256 (order: 1, 12288 bytes)

204.[ 0.832817] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)

205.[ 0.839450] NET: Registered protocol family 1

206.[ 0.843904] RPC: Registered named UNIX socket transport module.

207.[ 0.849390] RPC: Registered udp transport module.

208.[ 0.854022] RPC: Registered tcp transport module.

209.[ 0.858686] RPC: Registered tcp NFSv4.1 backchannel transport module. 210.[ 0.865330] PMU: registered new PMU device of type 0

211.[ 0.870717] cpuidle: phy_regs_save:0x389ff000

212.[ 0.874682] Loaded driver for PL330 DMAC-0 s3c-pl330

213.[ 0.879385] DBUFF-64x8bytes Num_Chans-8 Num_Peri-2 Num_Events-32 214.[ 0.885545] Loaded driver for PL330 DMAC-1 s3c-pl330

215.[ 0.890354] DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32 216.[ 0.896527] Loaded driver for PL330 DMAC-2 s3c-pl330

217.[ 0.901343] DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32 218.[ 0.916582] ashmem: initialized

219.[ 0.948580] ROMFS MTD (C) 2007 Red Hat, Inc.

220.[ 0.949199] yaffs: yaffs built Jan 21 2013 17:12:49 Installing.

221.[ 0.949318] msgmni has been set to 775

222.[ 0.952233] io scheduler noop registered

223.[ 0.952280] io scheduler deadline registered

224.[ 0.952505] io scheduler cfq registered (default)

225.[ 0.953022] start plist test

226.[ 0.964738] end plist test

227.[ 0.965544] s3cfb s3cfb: win 2: pmem_start=0x39b95000

228.[ 0.965600] s3cfb s3cfb: [fb2] dma: 0x39b95000, cpu: 0xe1000000, size: 0 x0085c000

229.[ 0.980388] FIMD srcsclk = 166750000

230.[ 0.980503] s3cfb s3cfb: registered successfully

231.[ 0.999445] s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 16) is a S3C6400/10

232.[ 1.004497] s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 20) is a S3C6400/10

233.[ 1.012278] s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 24) is a S3C6400/10

234.[ 1.020063] s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 28) is a S 3C6400/10

235.[ 1.028139] kgdb: Registered I/O driver kgdboc.

236.[ 1.029336] leds initialized

237.[ 1.029853] pwm initialized

238.[ 1.030397] mini210-adc initialized

239.[ 1.031294] backlight initialized

240.[ 1.033368] PA FB = 0x39B95000, bits per pixel = 32

241.[ 1.033419] screen width=800 height=480 va=0xd9b95000 pa=0x39b95000 242.[ 1.037300] xres_virtual = 800, yres_virtual = 1440, xoffset = 0, yoffset = 0

243.[ 1.044271] fb_size=8765440

244.[ 1.046967] Back frameBuffer[0].VAddr=d9d0c000 PAddr=39d0c000 size=15 36000

245.[ 1.053883] Back frameBuffer[1].VAddr=d9e83000 PAddr=39e83000 size=15 36000

246.[ 1.060711] Video Y Buffer[0].VAddr=d9ffa000 PAddr=39ffa000 size=921600 247.[ 1.067274] Video Y Buffer[1].VAddr=da0db000 PAddr=3a0db000 size=9216

00

248.[ 1.073853] Video Y Buffer[2].VAddr=da1bc000 PAddr=3a1bc000 size=92160 0

249.[ 1.080435] Video UV Buffer[0].VAddr=da29d000 PAddr=3a29d000 size=462 848

250.[ 1.087114] Video UV Buffer[1].VAddr=da30e000 PAddr=3a30e000 size=462 848

251.[ 1.093781] Video UV Buffer[2].VAddr=da37f000 PAddr=3a37f000 size=4628

48

252.[ 1.116968] brd: module loaded

253.[ 1.125950] loop: module loaded

254.[ 1.129049] S3C NAND Driver, (c) 2008 Samsung Electronics

255.[ 1.232765] MLC nand initialized, 2012 ported by FriendlyARM

256.[ 1.232829] S3C NAND Driver is using hardware ECC.

257.[ 1.232908] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)

258.[ 1.232996] Creating 5 MTD partitions on "s5pv210-nand":

259.[ 1.234619] 0x0000000c0000-0x000000100000 : "misc"

260.[ 1.241942] 0x000000100000-0x000000600000 : "recovery"

261.[ 1.247967] 0x000000600000-0x000000b00000 : "kernel"

262.[ 1.252719] 0x000000b00000-0x000000e00000 : "ramdisk"

263.[ 1.257397] 0x000000e00000-0x000080000000 : "system"

264.[ 1.599156] PPP generic driver version 2.4.2

265.[ 1.600049] PPP Deflate Compression module registered

266.[ 1.600107] PPP BSD Compression module registered

267.[ 1.601243] PPP MPPE Compression module registered

268.[ 1.601298] NET: Registered protocol family 24

269.[ 1.601345] tun: Universal TUN/TAP device driver, 1.6

270.[ 1.605267] tun: (C) 1999-2004 Max Krasnyansky 271.[ 1.611828] dm9000 Ethernet Driver, V1.31

272.[ 1.616853] eth0: dm9000a at e0838000,e083c00c IRQ 39 MAC: 00:40:5c:2 6:0a:5b (chip)

273.[ 1.623722] usbcore: registered new interface driver ath9k_htc

274.[ 1.629099] sdhci: Secure Digital Host Controller Interface driver

275.[ 1.634953] sdhci: Copyright(c) Pierre Ossman

276.[ 1.639317] s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133400000 Hz) 277.[ 1.645807] s3c-sdhci s3c-sdhci.0: clock source 2: sclk_mmc (47642857 Hz) 278.[ 1.652605] mmc0: no vmmc regulator found

279.[ 1.656922] Registered led device: mmc0::

280.[ 1.661006] mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA

281.[ 1.667701] s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133400000 Hz) 282.[ 1.674146] s3c-sdhci s3c-sdhci.1: clock source 2: sclk_mmc (47642857 Hz) 283.[ 1.682986] mmc1: no vmmc regulator found

284.[ 1.685346] Registered led device: mmc1::

285.[ 1.689318] mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA

286.[ 1.699252] s3c-sdhci s3c-sdhci.2: clock source 0: hsmmc (133400000 Hz) 287.[ 1.702486] s3c-sdhci s3c-sdhci.2: clock source 2: sclk_mmc (47642857 Hz) 288.[ 1.709288] mmc2: no vmmc regulator found

289.[ 1.715636] Registered led device: mmc2::

290.[ 1.717615] mmc2: SDHCI controller on samsung-hsmmc [s3c-sdhci.2] using ADMA

291.[ 1.724348] s3c-sdhci s3c-sdhci.3: clock source 0: hsmmc (133400000 Hz) 292.[ 1.730824] s3c-sdhci s3c-sdhci.3: clock source 2: sclk_mmc (47642857 Hz) 293.[ 1.740810] mmc3: no vmmc regulator found

294.[ 1.741967] Registered led device: mmc3::

295.[ 1.746035] mmc3: SDHCI controller on samsung-hsmmc [s3c-sdhci.3] using ADMA

296.[ 1.752951] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 297.[ 1.761432] s5p-ehci s5p-ehci: S5P EHCI Host Controller

298.[ 1.764380] s5p-ehci s5p-ehci: new USB bus registered, assigned bus numb er 1

299.[ 1.771406] s5p-ehci s5p-ehci: irq 87, io mem 0xec200000

300.[ 1.789533] s5p-ehci s5p-ehci: USB 0.0 started, EHCI 1.00

301.[ 1.790770] hub 1-0:1.0: USB hub found

302.[ 1.790847] hub 1-0:1.0: 1 port detected

303.[ 1.791927] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

304.[ 1.798054] s5p-ohci s5p-ohci: EXYNOS OHCI Host Controller

305.[ 1.801174] s5p-ohci s5p-ohci: new USB bus registered, assigned bus numb er 2

306.[ 1.808229] s5p-ohci s5p-ohci: irq 87, io mem 0xec300000

307.[ 1.872876] hub 2-0:1.0: USB hub found

308.[ 1.872960] hub 2-0:1.0: 1 port detected

309.[ 1.874844] usbcore: registered new interface driver usbserial

310.[ 1.874907] usbserial: USB Serial Driver core

311.[ 1.874948] Initializing USB Mass Storage driver...

312.[ 1.878576] usbcore: registered new interface driver usb-storage

313.[ 1.879346] USB Mass Storage support registered.

314.[ 1.884519] s3c-udc : S3C HS USB Device Controller Driver, (c) 2008-2009 Samsung Electronics

315.[ 1.884530] s3c-udc : version 15 March 2009 (DMA Mode)

316.[ 1.906446] android_usb gadget: Mass Storage Function, version: 2009/09/1 1

317.[ 1.906517] android_usb gadget: Number of LUNs=1

318.[ 1.908906] lun0: LUN: removable file: (no medium)

319.[ 1.917974] android_usb gadget: android_usb ready

320.[ 1.935143] Registered gadget driver 'android_usb'

321.[ 1.936127] mousedev: PS/2 mouse device common for all mice

322.[ 1.937682] input: gpio-keys as /devices/platform/gpio-keys/input/input0 323.[ 1.939892] touchscreen-1wire initialized

324.[ 1.939941] backlight-1wire initialized

325.[ 1.943390] setup_irq: ret = 0

326.[ 1.949344] PWM clock = 66700000

327.[ 1.949382] TCNT_FOR_SAMPLE_BIT = 433, TCFG1 = 00010000

328.[ 1.955703] input: fa_ts_input as /devices/virtual/input/input1

329.[ 1.962284] ts-if initialized

330.[ 1.964422] S3C24XX RTC, (c) 2004,2006 Simtec Electronics

331.[ 1.969103] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

332.[ 1.976461] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

333.[ 1.979792] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

334.[ 1.985189] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

335.[ 1.990673] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

336.[ 2.000583] using rtc device, s3c, for alarms

337.[ 2.000695] s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0

338.[ 2.007003] i2c /dev entries driver

339.[ 2.012407] Linux video capture interface: v2.00

340.[ 2.014907] gspca: v2.13.0 registered

341.[ 2.018650] usbcore: registered new interface driver zc3xx

342.[ 2.023604] mfc_init: <6>S5PC110 MFC Driver, (c) 2009 Samsung Electroni cs

343.[ 2.023610]

344.[ 2.035622] S3C JPEG Driver, (c) 2007 Samsung Electronics

345.[ 2.037195] JPEG driver for S5PV210

346.[ 2.041789] i2c i2c-1: attached s5p_ddc into i2c adapter successfully

347.[ 2.047438] S5PC11X HPD Driver, (c) 2010 Samsung Electronics

348.[ 2.053696] S5PC11X CEC Driver, (c) 2010 Samsung Electronics

349.[ 2.060876] usbcore: registered new interface driver uvcvideo

350.[ 2.064060] USB Video Class driver (v1.1.0)

351.[ 2.110690] input: mma7660 as /devices/platform/s3c2440-i2c.0/i2c-0/0-004 c/input/input2

352.[ 2.111368] mma7660 0-004c: MMA7660 device is probed successfully. 353.[ 2.111789] i2c-core: driver [mma7660] using legacy suspend method 354.[ 2.111853] i2c-core: driver [mma7660] using legacy resume method 355.[ 2.114800] MMA7660 sensor driver registered.

356.[ 2.119136] S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics

357.[ 2.125786] s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, ir q enabled

358.[ 2.134915] device-mapper: uevent: version 1.0.3

359.[ 2.138459] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-d evel@84d922d610661ed9ac51f3dd

360.[ 2.145779] Bluetooth: HCI UART driver ver 2.2

361.[ 2.150063] Bluetooth: HCI H4 protocol initialized

362.[ 2.154842] Bluetooth: HCI BCSP protocol initialized

363.[ 2.159764] Bluetooth: HCILL protocol initialized

364.[ 2.164444] Bluetooth: HCIATH3K protocol initialized

365.[ 2.169384] Bluetooth: Generic Bluetooth USB driver ver 0.6

366.[ 2.175389] usbcore: registered new interface driver btusb

367.[ 2.180717] cpuidle: using governor ladder

368.[ 2.185080] cpuidle: using governor menu

369.[ 2.208617] usbcore: registered new interface driver usbhid

370.[ 2.208677] usbhid: USB HID core driver

371.[ 2.211671] ALSA device list:

372.[ 2.211711] No soundcards found.

373.[ 2.211742] oprofile: hardware counters not available

374.[ 2.211784] oprofile: using timer interrupt.

375.[ 2.214112] TCP cubic registered

376.[ 2.216531] NET: Registered protocol family 17

377.[ 2.220996] NET: Registered protocol family 15

378.[ 2.225725] Bluetooth: RFCOMM TTY layer initialized

379.[ 2.230259] Bluetooth: RFCOMM socket layer initialized

380.[ 2.235331] Bluetooth: RFCOMM ver 1.11

381.[ 2.239059] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

382.[ 2.244356] Bluetooth: BNEP filters: protocol multicast

383.[ 2.249546] Bluetooth: HIDP (Human Interface Emulation) ver 1.2

384.[ 2.255892] NET: Registered protocol family 35

385.[ 2.260125] lib80211: common routines for IEEE802.11 drivers

386.[ 2.265489] lib80211_crypt: registered algorithm 'NULL'

387.[ 2.270687] Registering the dns_resolver key type

388.[ 2.275418] VFP support v0.3: implementor 41 architecture 3 part 30 varian t c rev 2

389.[ 2.282994] ThumbEE CPU extension supported.

390.[ 2.287734] s5pv210_cpufreq_init: S5PV210 cpu-freq driver

391.[ 2.294262] regulator_init_complete: pd_mfc_supply: disabling

392.[ 2.298338] regulator_init_complete: pd_tv_supply: disabling

393.[ 2.304023] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling

394.[ 2.309451] s3c-rtc s3c64xx-rtc: setting system clock to 2013-01-23 10:13:

49 UTC (1358936029)

395.[ 2.323559] FIMC0 registered successfully

396.[ 2.325558] FIMC1 registered successfully

397.[ 2.327653] FIMC2 registered successfully

398.[ 2.330330] S5PC1XX TVOUT Driver, (c) 2009 Samsung Electronics

399.[ 2.336619] s5p-tvout s5p-tvout: hpd status is cable removed

400.[ 2.371581] usb 1-1: new high speed USB device number 2 using s5p-ehci 401.[ 2.383306] dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, lpa 0xCD E1

402.[ 2.398891] IP-Config: Guessing netmask 255.255.255.0

403.[ 2.399198] IP-Config: Complete:

404.[ 2.399239] device=eth0, addr=192.168.1.80, mask=255.255.255.0, gw= 255.255.255.255,

405.[ 2.399315] host=192.168.1.80, domain=, nis-domain=(none),

406.[ 2.399365] bootserver=255.255.255.255, rootserver=192.168.1.5, rootpa th=

本文来源:https://www.bwwdw.com/article/r2bl.html

Top