主题 : Tiny210v2( S5PV210 )平台下: 利用uboot启动远程Kernel(TFTP)以及挂载远程ROOTFS(NFS) 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 54383
精华: 0
发帖: 63
金钱: 315 两
威望: 63 点
贡献值: 0 点
综合积分: 126 分
注册时间: 2011-08-29
最后登录: 2016-09-14
10楼  发表于: 2013-01-25 10:29
你好 都是按照楼主帖子做的,区别我的编译器用的友善提供的4.5.1,还有就是nfs 挂载我用的环境变量#set bootargs  root=/dev/nfs console=ttySAC0,115200 nfsroot=192.168.0.21:/opt/210/qtopia ip=192.168.0.122:192.168.0.21:192.168.0.2:255.255.255.0::eth0:off
内核用的是光盘里linux-3.0.8-20121030.tgz,配置文件也是用的楼主的,但是我从sd卡启动
U-Boot 2013.01-rc2 (Jan 10 2013 - 11:00:16) for FriendlyLEG-TINY210

CPU:    S5PC110@1000MHz

Board:   FriendlyLEG-TINY210
DRAM:  512 MiB
WARNING: Caches not enabled

PWM Moudle Initialized.
GPD0CON  : 1111, GPD0DAT  : e
NAND:  2048 MiB
MMC:   SAMSUNG SD/MMC: 0, SAMSUNG SD/MMC: 1
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
Hit any key to stop autoboot:  0
dm9000 i/o: 0x88001000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:40:5c:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.0.179; our IP address is 192.168.0.122
Filename 'uImage'.
Load address: 0x21000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################
done
Bytes transferred = 3579564 (369eac hex)
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-3.0.8-TINY210V2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3579500 Bytes = 3.4 MiB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.0.8-TINY210V2 (root@desktop) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #2 PREEMPT Thu Jan 24 11:23:47 AFT 2013
[    0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: MINI210
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU S5PV210/S5PC110 (id 0x43110220)
[    0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[    0.000000] S5PV210: PLL settings, A=1000000000, M=667000000, E=80000000 V=54000000
[    0.000000] S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
[    0.000000] HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
[    0.000000] sclk_dmc: source is sclk_a2m (0), rate is 200000000
[    0.000000] sclk_onenand: source is hclk_dsys (1), rate is 166750000
[    0.000000] uclk1: source is mout_mpll (6), rate is 66700000
[    0.000000] uclk1: source is mout_mpll (6), rate is 66700000
[    0.000000] uclk1: source is mout_mpll (6), rate is 66700000
[    0.000000] uclk1: source is mout_mpll (6), rate is 66700000
[    0.000000] sclk_mixer: source is sclk_dac (0), rate is 54000000
[    0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_cam0: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_cam1: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_fimd: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857
[    0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857
[    0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000
[    0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000
[    0.000000] sclk_mfc: source is sclk_a2m (0), rate is 200000000
[    0.000000] sclk_g2d: source is sclk_a2m (0), rate is 200000000
[    0.000000] sclk_g3d: source is sclk_a2m (0), rate is 200000000
[    0.000000] sclk_csis: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_pwi: source is ext_xtal (0), rate is 24000000
[    0.000000] sclk_pwm: source is ext_xtal (0), rate is 24000000
[    0.000000] s5p: 36864 kbytes system memory reserved for mfc at 0x3dbf5000, 0-bank base(0x3dbf5000)
[    0.000000] s5p: 36864 kbytes system memory reserved for mfc at 0x3b7f5000, 1-bank base(0x00000000)
[    0.000000] s5p: 6144 kbytes system memory reserved for fimc0 at 0x3b1f5000, 1-bank base(0x00000000)
[    0.000000] s5p: 16 kbytes system memory reserved for fimc1 at 0x3b1f1000, 1-bank base(0x00000000)
[    0.000000] s5p: 6144 kbytes system memory reserved for fimc2 at 0x3abf1000, 1-bank base(0x00000000)
[    0.000000] s5p: 8192 kbytes system memory reserved for jpeg at 0x3a3f1000, 0-bank base(0x3a3f1000)
[    0.000000] s5p: 13060 kbytes system memory reserved for fimd at 0x39730000, 1-bank base(0x00000000)
[    0.000000] s5p: 8192 kbytes system memory reserved for g2d at 0x38f30000, 0-bank base(0x38f30000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 101179
[    0.000000] Kernel command line: root=/dev/nfs console=ttySAC0,115200 nfsroot=192.168.0.21:/opt/210/qtopia ip=192.168.0.122:192.168.0.21:192.168.0.2:255.255.255.0::eth0:off
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 399MB 0MB = 399MB total
[    0.000000] Memory: 396848k/512324k available, 11964k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xff000000 - 0xffe00000   (  14 MB)
[    0.000000]     vmalloc : 0xe0800000 - 0xfd000000   ( 456 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc002d000   ( 148 kB)
[    0.000000]       .text : 0xc002d000 - 0xc06a6cf4   (6632 kB)
[    0.000000]       .data : 0xc06a8000 - 0xc06efc80   ( 288 kB)
[    0.000000]        .bss : 0xc06efca4 - 0xc0734040   ( 273 kB)
[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:393
[    0.000000] VIC @fd000000: id 0x00041192, vendor 0x41
[    0.000000] VIC @fd010000: id 0x00041192, vendor 0x41
[    0.000000] VIC @fd020000: id 0x00041192, vendor 0x41
[    0.000000] VIC @fd030000: id 0x00041192, vendor 0x41
[    0.000000] mult[140737]
[    0.000000] max_delta_ns[2937815369]
[    0.000000] min_delta_ns[30517]
[    0.000000] rate[32768]
[    0.000000] HZ[256]
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttySAC0] enabled
[    0.440490] Calibrating delay loop... 994.84 BogoMIPS (lpj=1941504)
[    0.464784] pid_max: default: 32768 minimum: 301
[    0.465027] Mount-cache hash table entries: 512
[    0.465524] Initializing cgroup subsys debug
[    0.465577] Initializing cgroup subsys cpuacct
[    0.465633] Initializing cgroup subsys freezer
[    0.468970] CPU: Testing write buffer coherency: ok
[    0.479404] print_constraints: dummy:
[    0.479697] NET: Registered protocol family 16
[    0.498148] S3C Power Management, Copyright 2004 Simtec Electronics
[    0.514791] fimd at 0x39730000
[    0.514903] hsmmc0: sclk_mmc: source is mout_mpll, rate is 47642857
[    0.514974] hsmmc1: sclk_mmc: source is mout_mpll, rate is 47642857
[    0.515037] hsmmc2: sclk_mmc: source is mout_mpll, rate is 47642857
[    0.515097] hsmmc3: sclk_mmc: source is mout_mpll, rate is 47642857
[    0.522730] S5PV210: Initializing architecture
[    0.527397] s3c-adc s5pv210-adc: attached adc driver
[    0.530357] s3c24xx-pwm s3c24xx-pwm.0: tin at 66700000, tdiv at 66700000, tin=divclk, base 0
[    0.539653] print_constraints: pd_tv_supply: 5000 mV normal
[    0.544534] print_constraints: pd_lcd_supply: 5000 mV normal
[    0.550246] print_constraints: pd_g3d_supply: 5000 mV normal
[    0.555964] print_constraints: pd_mfc_supply: 5000 mV normal
[    0.561694] print_constraints: pd_audio_supply: 5000 mV normal
[    0.630398] bio: create slab <bio-0> at 0
[    0.633102] SCSI subsystem initialized
[    0.638469] usbcore: registered new interface driver usbfs
[    0.639287] usbcore: registered new interface driver hub
[    0.639815] usbcore: registered new device driver usb
[    0.641554] s3c-i2c s3c2440-i2c.0: slave address 0x10
[    0.641614] s3c-i2c s3c2440-i2c.0: bus frequency set to 378 KHz
[    0.644723] s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
[    0.648571] s3c-i2c s3c2440-i2c.1: slave address 0x10
[    0.653382] s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz
[    0.659939] s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
[    0.664695] s3c-i2c s3c2440-i2c.2: slave address 0x10
[    0.669588] s3c-i2c s3c2440-i2c.2: bus frequency set to 378 KHz
[    0.676630] s3c-i2c s3c2440-i2c.2: i2c-2: S3C I2C adapter
[    0.682570] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.688475] Bluetooth: Core ver 2.16
[    0.691025] NET: Registered protocol family 31
[    0.695210] Bluetooth: HCI device and connection manager initialized
[    0.701484] Bluetooth: HCI socket layer initialized
[    0.706290] Bluetooth: L2CAP socket layer initialized
[    0.711352] Bluetooth: SCO socket layer initialized
[    0.717300] cfg80211: Calling CRDA to update world regulatory domain
[    0.724051] Switching to clocksource clock_source_systimer
[    0.730420] Switched to NOHz mode on CPU #0
[    0.766424] NET: Registered protocol family 2
[    0.766691] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.767644] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.767961] TCP bind hash table entries: 16384 (order: 6, 327680 bytes)
[    0.769523] TCP: Hash tables configured (established 16384 bind 16384)
[    0.775868] TCP reno registered
[    0.778904] UDP hash table entries: 256 (order: 1, 12288 bytes)
[    0.784792] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[    0.791394] NET: Registered protocol family 1
[    0.795881] RPC: Registered named UNIX socket transport module.
[    0.801357] RPC: Registered udp transport module.
[    0.805991] RPC: Registered tcp transport module.
[    0.810661] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.817293] PMU: registered new PMU device of type 0
[    0.822719] cpuidle: phy_regs_save:0x389ff000
[    0.826671] Loaded driver for PL330 DMAC-0 s3c-pl330
[    0.831353]  DBUFF-64x8bytes Num_Chans-8 Num_Peri-2 Num_Events-32
[    0.837577] Loaded driver for PL330 DMAC-1 s3c-pl330
[    0.842314]  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.848501] Loaded driver for PL330 DMAC-2 s3c-pl330
[    0.853318]  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.868585] ashmem: initialized
[    0.901322] ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.902018] msgmni has been set to 775
[    0.904919] io scheduler noop registered
[    0.904966] io scheduler deadline registered
[    0.905212] io scheduler cfq registered (default)
[    0.905258] start plist test
[    0.908612] end plist test
[    0.909327] s3cfb s3cfb: win 2: pmem_start=0x39b95000
[    0.910444] s3cfb s3cfb: [fb2] dma: 0x39b95000, cpu: 0xe1000000, size: 0x0085c000
[    0.927600] FIMD src sclk = 166750000
[    0.927711] s3cfb s3cfb: registered successfully
[    0.946734] s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 16) is a S3C6400/10
[    0.954843] s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 20) is a S3C6400/10
[    0.962651] s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 24) is a S3C6400/10
[    0.970440] s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 28) is a S3C6400/10
[    0.979599] leds     initialized
[    0.980118] pwm      initialized
[    0.980684] mini210-adc      initialized
[    0.981597] backlight        initialized
[    0.983718] PA FB = 0x39B95000, bits per pixel = 32
[    0.983770] screen width=800 height=480 va=0xd9b95000 pa=0x39b95000
[    0.983825] xres_virtual = 800, yres_virtual = 1440, xoffset = 0, yoffset = 0
[    0.988161] fb_size=8765440
[    0.990802] Back frameBuffer[0].VAddr=d9d0c000 PAddr=39d0c000 size=1536000
[    0.997635] Back frameBuffer[1].VAddr=d9e83000 PAddr=39e83000 size=1536000
[    1.004452] Video Y Buffer[0].VAddr=d9ffa000 PAddr=39ffa000 size=921600
[    1.011020] Video Y Buffer[1].VAddr=da0db000 PAddr=3a0db000 size=921600
[    1.017603] Video Y Buffer[2].VAddr=da1bc000 PAddr=3a1bc000 size=921600
[    1.024178] Video UV Buffer[0].VAddr=da29d000 PAddr=3a29d000 size=462848
[    1.030858] Video UV Buffer[1].VAddr=da30e000 PAddr=3a30e000 size=462848
[    1.037533] Video UV Buffer[2].VAddr=da37f000 PAddr=3a37f000 size=462848
[    1.061157] brd: module loaded
[    1.070016] loop: module loaded
[    1.073342] S3C NAND Driver, (c) 2008 Samsung Electronics
[    1.177049] MLC nand init failed, -19, 2012 ported by FriendlyARM http://www.arm9.net
[    1.177126] S3C NAND Driver is using hardware ECC.
[    1.177206] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
[    1.177324] No oob scheme defined for oobsize 512
[  240.864812] INFO: task kinteractiveup:436 blocked for more than 120 seconds.
[  240.864888] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  240.864956] kinteractiveup  D c04b5dc8     0   436      2 0x00000000

换了几张卡 步骤也是跟楼主一样,可是还是不能启动,tiny210 v2 板子烧友善光盘里面的image 从nand 启动都是正常的!
级别: 骑士
UID: 5844
精华: 9
发帖: 62
金钱: 760 两
威望: 152 点
贡献值: 9 点
综合积分: 304 分
注册时间: 2009-05-11
最后登录: 2016-11-28
11楼  发表于: 2013-01-25 10:40
这个问题我出现过,注意看这一行:
[    1.177049] MLC nand init failed, -19, 2012 ported by FriendlyARM http://www.arm9.net

我认为是 FriendlyARM 提供的 nandflash 驱动是 二进制的,这个二进制文件中的对齐和我的4.7GCC在对齐方向上有冲突,编译的时候,添加那个参数以后,整个内核重新编译就OK了。

如果这个分析是正确的话,你试一试:
1. 按照之前帖子中的 改一下 Makefile ,再试一试。
2. 不要使用我的 内核配置文件,直接用 友善 的默认配置文件,但是手工添加 NFS 支持。

其实从LOG上来看, uboot 通过 TFTP 下载已经成功了, 内核启动已经成功了。
小米加步枪
级别: 新手上路
UID: 15301
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
贡献值: 0 点
综合积分: 56 分
注册时间: 2010-03-03
最后登录: 2013-03-07
12楼  发表于: 2013-01-25 14:46
如何将SD中的uboot拷贝到nand中执行啊,我用tftp 0x20000000 uboot.bin ,nand erase 0x0 0x300000,然后nand write 0x20000000 0x0 0x300000。然后掉电运行,没反应啊。大侠们指点下。是不是我的nand地址搞错了?
级别: 新手上路
UID: 32897
精华: 0
发帖: 31
金钱: 155 两
威望: 31 点
贡献值: 0 点
综合积分: 62 分
注册时间: 2010-11-23
最后登录: 2013-02-28
13楼  发表于: 2013-01-26 12:48
顶起,不错
级别: 侠客
UID: 44031
精华: 0
发帖: 53
金钱: 265 两
威望: 53 点
贡献值: 0 点
综合积分: 106 分
注册时间: 2011-04-21
最后登录: 2014-05-14
14楼  发表于: 2013-01-26 12:50

 回 12楼(joyo00321949) 的帖子

这个版本的u-boot没实现nand_cp功能的,需要自己添加,可以参照liukun的tiny210-u-boot-ver3.1
级别: 新手上路
UID: 32897
精华: 0
发帖: 31
金钱: 155 两
威望: 31 点
贡献值: 0 点
综合积分: 62 分
注册时间: 2010-11-23
最后登录: 2013-02-28
15楼  发表于: 2013-01-26 13:00
老楼,这个uboot支持MLC 2G nand Flash吗,最近我也用这个开源的uboot,nand flash 能识别出来,但是不能写和读nand flash,只可以执行nand dump ,nand info。
级别: 新手上路
UID: 86314
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
贡献值: 0 点
综合积分: 36 分
注册时间: 2013-01-16
最后登录: 2016-04-13
16楼  发表于: 2013-01-27 19:51
我的是tiny210的2G的,为什么uboot编译也通不过啊?
级别: 新手上路
UID: 32897
精华: 0
发帖: 31
金钱: 155 两
威望: 31 点
贡献值: 0 点
综合积分: 62 分
注册时间: 2010-11-23
最后登录: 2013-02-28
17楼  发表于: 2013-01-28 17:14
不知楼主 有没有从nand flash 引导内核
级别: 骑士
UID: 5844
精华: 9
发帖: 62
金钱: 760 两
威望: 152 点
贡献值: 9 点
综合积分: 304 分
注册时间: 2009-05-11
最后登录: 2016-11-28
18楼  发表于: 2013-01-28 19:17

 回 17楼(江海) 的帖子

nand flash 里面是 android 系统,有时候需要对比,因此没敢烧写。 uboot 是写在 SD 上的。但是确认过 flash 的读取,是OK
的。只是没有确认过 写入。
级别: 新手上路
UID: 8837
精华: 0
发帖: 46
金钱: 230 两
威望: 46 点
贡献值: 0 点
综合积分: 92 分
注册时间: 2009-09-07
最后登录: 2013-12-04
19楼  发表于: 2013-02-20 21:33
先mark下