让TQ2440也用上设备树 (device tree 操作实例3_重要,对于移植很有参考价值_code)

资讯 2024-07-16 阅读:28 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
 1 U-Boot 2015.04-g5095150 (Dec 21 2015 - 06:17:05)
  2 CPUID: 32440001
  3 FCLK:      400 MHz
  4 HCLK:      100 MHz
  5 PCLK:       50 MHz
  6 I2C:   ready
  7 DRAM:  64 MiB
  8 WARNING: Caches not enabled
  9 Flash: 0 Bytes
 10 NAND:  256 MiB
 11 In:    serial
 12 Out:   serial
 13 Err:   serial
 14 Net:   dm9000
 15 Hit any key to stop autoboot:  0  
 16 TQ2440 # print
 17 baudrate=115200
 18 bootcmd=run cmd
 19 bootdelay=0
 20 cmd=tftp 0x30008000 uImage; tftp 0x31000000 ramdisk.img;  tftp 0x33000000 dtb; bootm 0x30008000 0x31000000 0x33000000
 21 cmd2=root=/dev/nfs rw nfsroot=192.168.2.8:/nfsroot/rootfs init=/linuxrc console=ttySAC0,115200n8 ip=192.168.2.6
 22 cmd3=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200n8 earlyprintk
 23 cmd4=nand read 0x30008000 0x200000 0x400000;bootm 0x30008000;
 24 cmd5=tftp 0x30008000 uImage; tftp 0x32000000 dtb; bootm 0x30008000 - 0x32000000
 25 ethact=dm9000
 26 ethaddr=00:0c:29:2a:5c:a5
 27 fileaddr=33000000
 28 filesize=fc6
 29 ipaddr=192.168.2.8
 30 netmask=255.255.255.0
 31 serverip=192.168.2.6
 32 Environment size: 665/524284 bytes
 33 TQ2440 # boot   
 34 dm9000 i/o: 0x20000000, id: 0x90000a46 
 35 DM9000: running in 16 bit mode
 36 MAC: 00:0c:29:2a:5c:a5
 37 could not establish link
 38 Using dm9000 device
 39 TFTP from server 192.168.2.6; our IP address is 192.168.2.8
 40 Filename 'uImage'.
 41 Load address: 0x30008000
 42 Loading: #################################################################
 43      #################################################################
 44      #################################################################
 45      ##########################
 46      1.4 MiB/s
 47 done
 48 Bytes transferred=3238648 (316af8 hex)
 49 dm9000 i/o: 0x20000000, id: 0x90000a46 
 50 DM9000: running in 16 bit mode
 51 MAC: 00:0c:29:2a:5c:a5
 52 could not establish link
 53 Using dm9000 device
 54 TFTP from server 192.168.2.6; our IP address is 192.168.2.8
 55 Filename 'ramdisk.img'.
 56 Load address: 0x31000000
 57 Loading: #################################################################
 58      #################################################################
 59      ######################################
 60      1.4 MiB/s
 61 done
 62 Bytes transferred=2465340 (259e3c hex)
 63 dm9000 i/o: 0x20000000, id: 0x90000a46 
 64 DM9000: running in 16 bit mode
 65 MAC: 00:0c:29:2a:5c:a5
 66 could not establish link
 67 Using dm9000 device
 68 TFTP from server 192.168.2.6; our IP address is 192.168.2.8
 69 Filename 'dtb'.
 70 Load address: 0x33000000
 71 Loading: #
 72      962.9 KiB/s
 73 done
 74 Bytes transferred=3944 (f68 hex)
 75 ## Booting kernel from Legacy Image at 30008000 ...
 76    Image Name:   Linux-4.9.0+
 77    Created:      2016-12-31  12:23:03 UTC
 78    Image Type:   ARM Linux Kernel Image (uncompressed)
 79    Data Size:    3238584 Bytes=3.1 MiB
 80    Load Address: 30008000
 81    Entry Point:  30008000
 82    Verifying Checksum ... OK
 83 ## Loading init Ramdisk from Legacy Image at 31000000 ...
 84    Image Name:   ramdisk
 85    Created:      2016-12-31  15:42:22 UTC
 86    Image Type:   ARM Linux RAMDisk Image (gzip compressed)
 87    Data Size:    2465276 Bytes=2.4 MiB
 88    Load Address: 00000000
 89    Entry Point:  00000000
 90    Verifying Checksum ... OK
 91 ## Flattened Device Tree blob at 33000000
 92    Booting using the fdt blob at 0x33000000
 93    Loading Kernel Image ... OK
 94    Loading Ramdisk to 33850000, end 33aa9dfc ... OK
 95    Loading Device Tree to 3384c000, end 3384ff67 ... OK
 96 Starting kernel ...
 97 Uncompressing Linux... done, booting the kernel.
 98 [    0.000000] Booting Linux on physical CPU 0x0
 99 [    0.000000] Linux version 4.9.0+ (pengdonglin@pengdonglin-dell) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #26 Sat Dec 31 20:22:58 CST 2016
100 [    0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c000717f
101 [    0.000000] CPU: VIVT data cache, VIVT instruction cache
102 [    0.000000] OF: fdt:Machine model: TQ2440
103 [    0.000000] debug: ignoring loglevel setting.
104 [    0.000000] bootconsole [earlycon0] enabled
105 [    0.000000] Memory policy: Data cache writeback
106 [    0.000000] CPU S3C2440A (id 0x32440001)
107 [    0.000000] On node 0 totalpages: 16384
108 [    0.000000] free_area_init_node: node 0, pgdat c0618928, node_mem_map c3f7a000
109 [    0.000000]   Normal zone: 128 pages used for memmap
110 [    0.000000]   Normal zone: 0 pages reserved
111 [    0.000000]   Normal zone: 16384 pages, LIFO batch:3
112 [    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
113 [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
114 [    0.000000] pcpu-alloc: [0] 0 
115 [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
116 [    0.000000] Kernel command line: root=/dev/ram0 rw rootfstype=ext2 console=ttySAC0,115200n8 init=/linuxrc ignore_loglevel earlyprintk
117 [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
118 [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
119 [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
120 [    0.000000] Memory: 55968K/65536K available (4573K kernel code, 210K rwdata, 1108K rodata, 192K init, 259K bss, 9568K reserved, 0K cma-reserved)
121 [    0.000000] Virtual kernel memory layout:
122 [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
123 [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
124 [    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
125 [    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
126 [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
127 [    0.000000]       .text : 0xc0008000 - 0xc047f990   (4575 kB)
128 [    0.000000]       .init : 0xc05bc000 - 0xc05ec000   ( 192 kB)
129 [    0.000000]       .data : 0xc05ec000 - 0xc06209d8   ( 211 kB)
130 [    0.000000]        .bss : 0xc06209d8 - 0xc06619a8   ( 260 kB)
131 [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
132 [    0.000000] NR_IRQS:103
133 [    0.000000] irq: clearing pending status 00000003
134 [    0.000000] irq: clearing pending status 00000002
135 [    0.000000] _get_rate: could not find clock xti
136 [    0.000129] sched_clock: 16 bits at 1000kHz, resolution 1000ns, wraps every 32767500ns
137 [    0.008042] clocksource: samsung_clocksource_timer: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 29163075 ns
138 [    0.019075] Console: colour dummy device 80x30
139 [    0.023815] Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
140 [    0.067559] pid_max: default: 32768 minimum: 301
141 [    0.072895] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
142 [    0.079743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
143 [    0.090398] CPU: Testing write buffer coherency: ok
144 [    0.097459] Setting up static identity map for 0x30008200 - 0x30008258
145 [    0.127589] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
146 [    0.138119] pinctrl core: initialized pinctrl subsystem
147 [    0.146746] NET: Registered protocol family 16
148 [    0.154580] DMA: preallocated 256 KiB pool for atomic coherent allocations
149 [    0.185425] cpuidle: using governor ladder
150 [    0.190320] S3C Power Management, Copyright 2004 Simtec Electronics
151 [    0.196746] No ATAGs?[    0.198745] S3C2440: Initialising architecture
152 [    0.437862] usbcore: registered new interface driver usbfs
153 [    0.444333] usbcore: registered new interface driver hub
154 [    0.450408] usbcore: registered new device driver usb
155 [    0.458996] Advanced Linux Sound Architecture Driver Initialized.
156 [    0.493161] clocksource: Switched to clocksource samsung_clocksource_timer
157 [    0.567114] NET: Registered protocol family 2
158 [    0.576074] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
159 [    0.583350] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
160 [    0.589831] TCP: Hash tables configured (established 1024 bind 1024)
161 [    0.596823] UDP hash table entries: 256 (order: 0, 4096 bytes)
162 [    0.602928] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
163 [    0.610683] NET: Registered protocol family 1
164 [    0.693880] RPC: Registered named UNIX socket transport module.
165 [    0.700159] RPC: Registered udp transport module.
166 [    0.704816] RPC: Registered tcp transport module.
167 [    0.709791] RPC: Registered tcp NFSv4.1 backchannel transport module.
168 [    0.718625] Trying to unpack rootfs image as initramfs...
169 [    0.731241] rootfs image is not initramfs (no cpio magic); looks like an initrd
170 [    0.840512] Freeing initrd memory: 2408K (c3850000 - c3aaa000)
171 [    0.852741] futex hash table entries: 256 (order: -1, 3072 bytes)
172 [    0.867903] workingset: timestamp_bits=30 max_order=14 bucket_order=0
173 [    1.008016] NFS: Registering the id_resolver key type
174 [    1.013569] Key type id_resolver registered
175 [    1.017959] Key type id_legacy registered
176 [    1.022229] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
177 [    1.029376] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
178 [    1.044788] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
179 [    1.071030] io scheduler noop registered
180 [    1.075219] io scheduler deadline registered
181 [    1.081221] io scheduler cfq registered (default)
182 [    1.300355] 50000000.serial: ttySAC0 at MMIO 0x50000000 (irq=32, base_baud=0) is a S3C2440
183 [    1.309382] console [ttySAC0] enabled
184 [    1.309382] console [ttySAC0] enabled
185 [    1.316901] bootconsole [earlycon0] disabled
186 [    1.316901] bootconsole [earlycon0] disabled
187 [    1.340212] random: fast init done
188 [    1.716981] brd: module loaded
189 [    1.725986] eth0: dm9000e at c4930000,c4932004 IRQ 7 MAC: 00:00:de:ad:be:ef (platform data)
190 [    1.729245] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
191 [    1.735383] ohci-s3c2410: OHCI S3C2410 driver
192 [    1.742082] mousedev: PS/2 mouse device common for all mice
193 [    1.747121] s3c-rtc 57000000.rtc: rtc disabled, re-enabling
194 [    1.751306] rtc rtc0: alarm rollover not handled
195 [    1.754867] rtc rtc0: invalid alarm value: 1900-2-1 0:0:0
196 [    1.761576] s3c-rtc 57000000.rtc: rtc core: registered s3c as rtc0
197 [    1.767510] i2c /dev entries driver
198 [    1.773729] s3c2410-wdt 53000000.watchdog: watchdog inactive, reset disabled, irq disabled
199 [    1.780689] sdhci: Secure Digital Host Controller Interface driver
200 [    1.784136] sdhci: Copyright(c) Pierre Ossman
201 [    1.790752] hidraw: raw HID events driver (C) Jiri Kosina
202 [    1.801870] usbcore: registered new interface driver usbhid
203 [    1.802003] usbhid: USB HID core driver
204 [    1.810764] NET: Registered protocol family 17
205 [    1.811441] Key type dns_resolver registered
206 [    1.881679] s3c-rtc 57000000.rtc: setting system clock to 2000-04-10 11:09:42 UTC (955364982)
207 [    1.885538] ALSA device list:
208 [    1.887578]   No soundcards found.
209 [    1.894813] RAMDISK: gzip image found at block 0
210 [    3.637668] VFS: Mounted root (ext2 filesystem) on device 1:0.
211 [    3.639332] Freeing unused kernel memory: 192K (c05bc000 - c05ec000)
212 [    3.644519] This architecture does not have kernel memory protection.
213 [    6.050107] dm9000 20000000.ethernet eth0: link down
214 Please press Enter to activate this console. 
215 [root@TQ2440 ]# 
216 [root@TQ2440 ]# 
217 [root@TQ2440 ]# [    8.175096] dm9000 20000000.ethernet eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
218 [root@TQ2440 ]# 
219 [root@TQ2440 ]# ping 192.168.2.6
220 PING 192.168.2.6 (192.168.2.6): 56 data bytes
221 64 bytes from 192.168.2.6: seq=0 ttl=64 time=1.888 ms
222 64 bytes from 192.168.2.6: seq=1 ttl=64 time=1.086 ms
223 64 bytes from 192.168.2.6: seq=2 ttl=64 time=1.088 ms
224 ^C
225 --- 192.168.2.6 ping statistics ---
226 3 packets transmitted, 3 packets received, 0% packet loss
227 round-trip min/avg/max=1.086/1.354/1.888 ms
228 [root@TQ2440 ]# 
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 134 USD toBTC Calculator -

    134                            USD                        toBTC                        Calculator -
    For the week (7 days) Date Day 134 USD to BTC Changes Changes % June...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 12年怎么购买比特币?比特币投资,轻松掌控

    12年怎么购买比特币?比特币投资,轻松掌控
    12年怎么购买比特币?买卖比特币可以通过以下交易所进行购买,分别是:欧易官网平台、ZG交易所、艾戴克斯交易所、C2CX交易软件、BaseFEX交易APP、波网交易平台、安银交易所、BitMart交易软件、紫牛币交所交易APP和澳网(AOMEX)交易平台等等十大平台下载,高效安全的数字货币交易平台。How do you buy bitcoins in 12 years? Bitcoins can be purchased through ten major platforms...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
标签列表