# tiny210v2-uboot **Repository Path**: KaminDeng/tiny210v2-uboot ## Basic Information - **Project Name**: tiny210v2-uboot - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2019-04-25 - **Last Updated**: 2024-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ##2013-9-13 Support DNW and Fastboot ### #fastboot step1: fastboot # 开发板 step2: fastboot flash bootloader tiny210v2-uboot.bin #PC step3: fastboot flash kernel /work/tftpboot/uImage_softecc #PC step4: fastboot flash system /work/tftpboot/rootfs_qtopia_qt4.img #PC step5: nand read 21000000 400000 500000 # 开发板 step6: bootm # 开发板 #dnw v1.0 dnw-linux : https://github.com/changbindu/dnw-linux other : 如果要实现从SD卡启动时候直接启动DNW菜单,在include/configs/tiny210.h中打开CONFIG_DNW_MENU_AUTORUN宏就可以实现了。这里默认不启动。关于dnw的使用,请参考别处介绍。 2013-8-31 Support Yaffs2 for slc NandFlash write ### step1: tftp rootfs_qtopia_qt4.img step2: nand erase e00000 2000000 step3: nand write.yaffs 21000000 e00000 $filesize step4: setenv machid 0xd8a step5: tftp uImage_softecc step6: bootm 说明: > - rootfs_qtopia_qt4.img是我精简过的yaffs2镜像文件,所以2000000大小要根据镜像大小改变 > - uImage_softecc是关闭硬件ECC的内核,如何关闭参考这里:http://blog.csdn.net/liukun321/article/details/8558425 ### [Ver130726-TINY210v2]# tftp rootfs_qtopia_qt4.img 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.1.229; our IP address is 192.168.1.230 Filename 'rootfs_qtopia_qt4.img'. Load address: 0x21000000 Loading: ####################################################transmission timeout ############# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################################################transmission timeout ######### ################################################################# ################################################################# ################################################################# ################################################################# ############transmission timeout ##################################################### ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################################ done Bytes transferred = 23536128 (1672200 hex) [Ver130726-TINY210v2]# nand erase e00000 2000000 NAND erase: device 0 offset 0xe00000, size 0x2000000 Skipping bad block at 0x00f40000 Erasing at 0x2de0000 -- 100% complete. OK [Ver130726-TINY210v2]# nand write.yaffs 21000000 e00000 $filesize NAND write: device 0 offset 0xe00000, size 0x1672200 Writing at 0xf20000 -- 6% is complete.Skip bad block 0x00f40000 Writing at 0x23e0000 -- 100% is complete. 22822912 bytes written: OK [Ver130726-TINY210v2]# [Ver130726-TINY210v2]# tftp uImage_softecc 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.1.229; our IP address is 192.168.1.230 Filename 'uImage_softecc'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ### done Bytes transferred = 4809352 (496288 hex) [Ver130726-TINY210v2]# bootm ## Booting kernel from Legacy Image at 21000000 ... Image Name: Linux-3.0.8-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4809288 Bytes = 4.6 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Using machid 0xd8a from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.8-FriendlyARM (root@kangear) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #2 PREEMPT Sat Aug 17 17:03:05 CST 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) .... Please press Enter to activate this console. [root@FriendlyARM /]# [root@FriendlyARM /]# ls bin home mnt sbin usr data lib opt sdcard var dev linuxrc proc sys www etc lost+found root tmp [root@FriendlyARM /]# ##2013-8-25 Support Boot Kernel from NandFlash(MLC) ### step1: setenv machid 0xd8a step2: tftp uImage_308 step3: nand erase 400000 500000 step4: nand write 21000000 400000 500000 step5: bootm 说明: > - 0xd8a是tiny210v2内核用的机器码 > - uImage_308是友善光盘中的3.08内核make uImage得来的 ### [Ver130726-TINY210v2]# tftp uImage_308 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.1.229; our IP address is 192.168.1.230 Filename 'uImage_308'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ### done Bytes transferred = 4811624 (496b68 hex) [Ver130726-TINY210v2]# nand erase 400000 500000 NAND erase: device 0 offset 0x400000, size 0x500000 Erasing at 0x800000 -- 100% complete. OK [Ver130726-TINY210v2]# nand write 21000000 400000 500000 NAND write: device 0 offset 0x400000, size 0x500000 5242880 bytes written: OK [Ver130726-TINY210v2]# bootm ## Booting kernel from Legacy Image at 21000000 ... Image Name: Linux-3.0.8-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4811560 Bytes = 4.6 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Using machid 0xd8a from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.8-FriendlyARM (root@kangear) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #1 PREEMPT Fri Jul 26 22:26:05 CST 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] MINI210: S70 selected [ 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 2013-08-17 Support NAND: 512MB(SLC) ID:ECDC1095(smart210) ##2013-08-17 Support NAND: 512MB(SLC) ID:ECDC1095(smart210) ### BL1 Ver:1307031 Start cp NAND: 512MB(SLC) ID:ECDC1095 Running! K U-Boot 2013.01-rc2-g0340193-dirty (Aug 17 2013 - 14:29:46) for TINY210(Nand:K9GAG08U0F) CPU: S5PC110@1000MHz Board: FriendlyARM-TINY210 DRAM: 512 MiB WARNING: Caches not enabled PWM Moudle Initialized. GPD0CON : 1111, GPD0DAT : e NAND: !type->pagesize = 1 ((nand->cellinfo >> 2) & 0x3) = 0 (1024 << (tmp & 3)) = 2048512 MiB MMC: SAMSUNG SD/MMC: 0, SAMSUNG SD/MMC: 1 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: dm9000 [Ver130726-TINY210v2]# 2013-08-03 Support 16bit-ECC write 说明: 用一个全是aa的8k二进制文件aImage来测试,已经可以生成校验码了 目前情况:可以实现16bit ECC校验,校验某处不准确,现在内核还不能启动起来。 ### U-Boot 2013.01-rc2-geeb2178 (Aug 04 2013 - 21:59:53) for TINY210(Nand:K9GAG08U0F) CPU: S5PC110@1000MHz Board: FriendlyARM-TINY210 DRAM: 512 MiB WARNING: Caches not enabled PWM Moudle Initialized. GPD0CON : 1111, GPD0DAT : e NAND: !type->pagesize = 1 ((nand->cellinfo >> 2) & 0x3) = 1 (1024 << (tmp & 3)) = 4096That is kangear! 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 [Ver130726-TINY210v2]# tftp uImage_308 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.1.229; our IP address is 192.168.1.230 Filename 'uImage_308'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ### done Bytes transferred = 4811624 (496b68 hex) [Ver130726-TINY210v2]# nand write 21000000 400000 500000 NAND write: device 0 offset 0x400000, size 0x500000 5242880 bytes written: OK [Ver130726-TINY210v2]# nand read 21000000 400000 500000 NAND read: device 0 offset 0x400000, size 0x500000 s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully 5242880 bytes read: OK [Ver130726-TINY210v2]# bootm ## Booting kernel from Legacy Image at 21000000 ... Image Name: Linux-3.0.8-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4811560 Bytes = 4.6 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! [Ver130726-TINY210v2]# ### U-Boot 2013.01-rc2-g36c122f-dirty (Aug 04 2013 - 16:39:56) for TINY210(Nand:K9GAG08U0F) CPU: S5PC110@1000MHz Board: FriendlyARM-TINY210 DRAM: 512 MiB WARNING: Caches not enabled PWM Moudle Initialized. GPD0CON : 1111, GPD0DAT : e NAND: !type->pagesize = 1 ((nand->cellinfo >> 2) & 0x3) = 1 (1024 << (tmp & 3)) = 4096That is kangear! 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.1.229; our IP address is 192.168.1.230 Filename 'aImage'. Load address: 0x21000000 Loading: # done Bytes transferred = 8192 (2000 hex) NAND write: device 0 offset 0x400000, size 0x2000 8192 bytes written: OK Page 00400000 dump: OOB: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff dc e7 f0 25 d2 d5 03 f8 57 43 61 20 6d b6 e5 79 ab 0b 9d f5 09 3e a0 b5 7a b0 ff ff 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [Ver130726-TINY210v2]# pri baudrate=115200 bootargs=root=/dev/nfs nfsroot=192.168.1.229:/work/rootfs_dir/nfs_rootfs/rootfs_qtopia_qt4 ip=192.168.1.230:192.168.1.229:192.168.1.1:255.255.255.0::eth0:off console=ttySAC0,115200 mem=512M bootcmd=tftp aImage && nand write 21000000 400000 2000 && nand dump.oob 400000 bootdelay=3 ethact=dm9000 ethaddr=00:40:5c:26:0a:5b fileaddr=21000000 filesize=2000 gatewayip=192.168.1.1 ipaddr=192.168.1.230 machid=0xd8a netmask=255.255.255.0 serverip=192.168.1.229 stderr=serial stdin=serial stdout=serial testecc=tftp aImage && nand write 21000000 400000 2000 && nand dump.oob 400000 Environment size: 625/16380 bytes [Ver130726-TINY210v2]# 2013-07-27 支持tftp下载内核nfs挂载根文件系统 ### step1: setenv machid 0xd8a step2: setenv bootargs root=/dev/nfs nfsroot=192.168.1.229:/work/rootfs_dir/nfs_rootfs/rootfs_qtopia_qt4 ip=192.168.1.230:192.168.1.229:192.168.1.1:255.255.255.0::eth0:off console=ttySAC0,115200 mem=512M step3: tftp uImage_308 step4: bootm 说明: > - 0xd8a是tiny210v2内核用的机器码 > - bootargs中的路径和ip与你实际情况更改 > - rootfs_qtopia_qt4是rootfs_qtopia_qt4-20130222.tar.gz通过命令行解压得来的 > - uImage_308是友善光盘中的3.08内核make uImage得来的 ### [Ver130726-TINY210v2]# tftp uImage_308 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.1.229; our IP address is 192.168.1.230 Filename 'uImage_308'. Load address: 0x21000000 Loading: ################################################################# ###################################T ############################## ################################################################# ################################################################# ################################################################# ### done Bytes transferred = 4811624 (496b68 hex) [Ver130726-TINY210v2]# bootm ## Booting kernel from Legacy Image at 21000000 ... Image Name: Linux-3.0.8-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4811560 Bytes = 4.6 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Using machid 0xd8a from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.8-FriendlyARM (root@kangear) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #1 PREEMPT Fri Jul 26 22:26:05 CST 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 ......... ......... [ 12.274252] libertas_sdio: Unknown symbol lbs_resume (err 0) [ 12.332482] libertas_sdio: Libertas SDIO driver [ 12.332536] libertas_sdio: Copyright Pierre Ossman Try to bring eth0 interface up......NFS root ...Done Please press Enter to activate this console. [root@FriendlyARM /]# ls bin etc linuxrc proc sdcard usr data home mnt root sys var dev lib opt sbin tmp www [root@FriendlyARM /]# 2013-07-26 支持go命令引导内核 ### BL1 Ver:1307020 Start cp NAND: 2GB(MLC2) ID:ECD59476 Running! K U-Boot 2013.01-rc2-g17590e5-dirty (Jul 26 2013 - 20:52:08) for TINY210(Nand:K9GAG08U0F) CPU: S5PC110@1000MHz Board: FriendlyARM-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 [Ver130726-TINY210v2]# tftp zImage 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.1.229; our IP address is 192.168.1.230 Filename 'zImage'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ### done Bytes transferred = 4811556 (496b24 hex) [Ver130726-TINY210v2]# go 21000000 ## Starting application at 0x21000000 ... Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.8-FriendlyARM (root@friendlyarm.tzs) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #1 PREEMPT Sat Feb 2 12:19:04 CST 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] MINI210: S70 selected [ 0.000000] INITRD: 0x0000000a+0x3ffb0fd1 is not a memory region - disabling initrd [ 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 2013-07-23 修改oobsize大小 2013-07-20 用"BL1"代替“spl”,使得BL1和u-boot代码脱离,便于移植(环境变量在SD卡中,请插SD卡) 2013-06-27 Nand/SD卡启动,u-boot.bin/spl二合一。 2013-06-26 开始移植 适用于tiny210v2 NandFlash:K9GAG08U0F