x210之通过TFTP服务引导内核

基于:u-boot环境变量配置记录

Linux+qt版

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

x210 # tftp c0008000 zImage

dm9000 i/o: 0x88000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 00:01:02:03:04:05

operating at 100Mbps FULL duplex mode 

TFTP from server 192.168.1.229; our IP address is 192.168.1.230

Filename 'zImage'.

Load address: 0xc0008000

Loading: T #################################################################

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

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

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

done

Bytes transferred = 3449076 (0x34a0f4)

x210 # bootm c0008000

Boot with zImage

In bootm linux!!!

cmdline:console=ttySAC0,115200 root=/dev/mtdblock4 rw init=/linuxrc rootfstype=jffs2

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 2.6.35.7 (root@localhost.localdomain) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #27 PREEMPT Mon Oct 22 15:17:31 CST 2012

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

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: SMDKV210

()


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


Android版

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

setenv bootcmd 'tftp C0008000 x210/Android/zImage-android; nand read 30A00000 B00000 180000; bootm C0008000 30A00000';saveenv

x210 # setenv bootcmd 'tftp C0008000 x210/Android/zImage-android; nand read 30A00000 B00000 180000; bootm C0008000 30A00000';saveenv

Saving Environment to SMDK bootable device...

Erasing Nand...

Writing to Nand... 

Saved enviroment variables

x210 # boot

dm9000 i/o: 0x88000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 00:01:02:03:04:05

operating at 100Mbps FULL duplex mode 

TFTP from server 192.168.1.229; our IP address is 192.168.1.230

Filename 'x210/Android/zImage-android'.

Load address: 0xc0008000

Loading: T #################################################################

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

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

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

done

Bytes transferred = 3229696 (0x314800)

NAND read: device 0 offset 0xb00000, size 0x180000

Main area read (12 blocks):

 1572864 bytes read: OK

Boot with zImage

get_format

-------- 1 --------

## Loading init Ramdisk from Legacy Image at 30a00000 ...

   Image Name:   ramdisk

   Created:      2012-06-20  11:48:56 UTC

   Image Type:   ARM Linux RAMDisk Image (uncompressed)

   Data Size:    142276 Bytes = 138.9 kB

   Load Address: 30800000

   Entry Point:  30800000

   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 2.6.35.7+ (lqm@lqm) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #82 PREEMPT Wed Jun 20 16:29:19 CST 2012

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

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: SMDKV210


第二步:

setenv bootcmd 'tftp C0008000 x210/Android/zImage-android; tftp 30A00000 x210/Android/x210-uramdisk.img; bootm C0008000 30A00000';saveenv

U-Boot 1.3.4-dirty (Jun 20 2012 - 15:55:57) for SMDKV210

CPU:  S5PV210@1000MHz(OK)

        APLL = 1000MHz, HclkMsys = 200MHz, PclkMsys = 100MHz

        MPLL = 667MHz, EPLL = 96MHz

                       HclkDsys = 166MHz, PclkDsys = 83MHz

                       HclkPsys = 133MHz, PclkPsys = 66MHz

                       SCLKA2M  = 200MHz

Serial = CLKUART 

Board:   X210

DRAM:    512 MB

Flash:   8 MB

SD/MMC: Card init fail!

0 MB

NAND:    512 MB 

In:      serial

Out:     serial

Err:     serial

checking mode for fastboot ...

Hit any key to stop autoboot:  0 

dm9000 i/o: 0x88000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 00:01:02:03:04:05

operating at 100Mbps FULL duplex mode 

TFTP from server 192.168.1.229; our IP address is 192.168.1.230

Filename 'x210/Android/zImage-android'.

Load address: 0xc0008000

Loading: T #################################################################

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

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

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

done

Bytes transferred = 3229696 (0x314800)

dm9000 i/o: 0x88000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 00:01:02:03:04:05

operating at 100Mbps FULL duplex mode 

TFTP from server 192.168.1.229; our IP address is 192.168.1.230

Filename 'x210/Android/x210-uramdisk.img'.

Load address: 0x30a00000

Loading: T ##########

done

Bytes transferred = 142340 (0x22c04)

Boot with zImage

get_format

-------- 1 --------

## Loading init Ramdisk from Legacy Image at 30a00000 ...

   Image Name:   ramdisk

   Created:      2012-06-20  11:48:56 UTC

   Image Type:   ARM Linux RAMDisk Image (uncompressed)

   Data Size:    142276 Bytes = 138.9 kB

   Load Address: 30800000

   Entry Point:  30800000

   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 2.6.35.7+ (lqm@lqm) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #82 PREEMPT Wed Jun 20 16:29:19 CST 2012

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

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: SMDKV210


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

很想知道uramdisk里边放了什么不要它会怎样所以我要执行下一步:

setenv bootcmd 'tftp C0008000 x210/Android/zImage-android; bootm C0008000 ';saveenv

x210 # setenv bootcmd 'tftp C0008000 x210/Android/zImage-android; bootm C0008000 ';saveenv

Saving Environment to SMDK bootable device...

Erasing Nand...

Writing to Nand... 

Saved enviroment variables

x210 # boot 

dm9000 i/o: 0x88000300, id: 0x90000a46 

DM9000: running in 16 bit mode

MAC: 00:01:02:03:04:05

operating at 100Mbps FULL duplex mode 

TFTP from server 192.168.1.229; our IP address is 192.168.1.230

Filename 'x210/Android/zImage-android'.

Load address: 0xc0008000

Loading: T #################################################################

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

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

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

done

Bytes transferred = 3229696 (0x314800)

Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 2.6.35.7+ (lqm@lqm) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #82 PREEMPT Wed Jun 20 16:29:19 CST 2012

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

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: SMDKV210

-------------------------------------------------------------

/ # [   27.665893] warning: `zygote' uses 32-bit capabilities (legacy support in use)

[   29.035598] *** 12 BitS ***

[   29.036212] s3c_sensor_open: ASIC revition ID : 1

[   37.487392] request_suspend_state: wakeup (3->0) at 36987211753 (2010-01-01 12:11:29.791220751 UTC)

/ # ls

acct                 init                 sys

cache                init.goldfish.rc     system

config               init.rc              ueventd.goldfish.rc

d                    init.smdkv210.rc     ueventd.rc

data                 mnt                  ueventd.smdkv210.rc

default.prop         proc                 vendor

dev                  sbin

etc                  sdcard

/ # 


结果居然能启动,这,这,一会再来看看uramdisk里边到底有什么:

根据《x210用户使用手册》上讲的应该是:android初始化脚本(如下截图)。那我不用这个脚本为什么也行呢?郁闷!!!《Android启动脚本init.rc 

还原为NandFlash启动:

setenv bootcmd 'nand read C0008000 600000 400000; nand read 30A00000 B00000 180000; bootm C0008000 30A00000'  


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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

袁保康

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值