CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 37243|回复: 9

Cubieboard安装Openwrt教程 (可以不需要编译)

[复制链接]
发表于 2013-6-16 18:44:18 | 显示全部楼层 |阅读模式
本帖最后由 tll 于 2013-6-21 23:47 编辑

感谢hipboi,本帖子在Ubuntu 12.04.1 (Mac)下写

A 直接用img弄,但是这样分区大小固定
img我用的是512的卡导出的,下次给
B 用fdisk分区,分区大小为最大
其中分两个,一种不编译,下载编译好的,一种自己编译
这里讲不需要编译的
先下载东西:
  1. wget http://stud.netgroup.uniroma2.it/~saverio/sunxi/v4/openwrt-sunxi-cubie-rootfs.tar.gz
  2. #下载rootfs
  3. wget http://stud.netgroup.uniroma2.it/~saverio/sunxi/v4/script.bin
  4. #下载script.bin配置文件
  5. wget http://stud.netgroup.uniroma2.it/~saverio/sunxi/v4/sunxi-spl.bin
  6. wget http://stud.netgroup.uniroma2.it/~saverio/sunxi/v4/u-boot.bin
  7. #下载uboot
  8. wget http://stud.netgroup.uniroma2.it/~saverio/sunxi/v4/openwrt-sunxi-uImage
  9. #下载uimage
复制代码
然后呢,插入SD卡(读卡器),使用dmesg命令看下SD卡是哪个文件,我就因为弄错文件而把我的本地磁盘格式化了……幸亏找回了数据
我这里以/dev/sdb为例开始
Ubuntu会自动挂上插入的磁盘,所以我们需要去掉挂载(假设我的SD上有两个分区)
  1. umount /dev/sdb1
  2. umount /dev/sdb2
复制代码
然后开始分区咯,先用fdisk -l记录下磁盘的数据(这是我另一个卡,只有32M,给大家做演示的)
  1. Disk /dev/sdb: 32 MB, 32112640 bytes
  2. 2 heads, 32 sectors/track, 980 cylinders, total 62720 sectors
  3. Units = sectors of 1 * 512 = 512 bytes
  4. Sector size (logical/physical): 512 bytes / 512 bytes
  5. I/O size (minimum/optimal): 512 bytes / 512 bytes
  6. Disk identifier: 0x00000000

  7.    Device Boot      Start         End      Blocks   Id  System
复制代码
由上可知,1 sector是512字节,即2 sectors就是1kb了,总共有62740个(不同卡可能不同)
再输入 fdisk /dev/sdb,然后输入d 1,再输入 d 2,删除分区(这个不太确定命令是否正确)。
然后开始做第一个分区
要做第一个分区,我们可以使用berryboot的img文件,将他导入进卡即可,这里先不讲。
又或者,你可以继续用fdisk来执行操作,输入n,然后分区号,开始的值都是默认,下面的最后一个sector,我第一个分区需要32M,则
2(2sectors=1k)*1024(1024k=1m)*32(32M)+2048(加上开始的部分)=67584,比我的总数还大,这是因为32M的卡本身就没32M
然后再使用n命令一次,这次全部用默认值,最后用w命令写入。
格式化:
  1. mkfs.vfat /dev/sdb1
  2. mkfs.ext4 /dev/sdb2
复制代码
然后呢,新建文件夹/temp
  1. mkdir /temp
复制代码
挂上1到/temp,复制文件,去掉,又上2,解压rootfs
  1. mount /dev/sdb1 /temp
  2. cp openwrt-sunxi-uImage /mnt/temp/uImage
  3. cp script.bin /mnt/temp/
  4. umount /mnt/temp
  5. mount /dev/sdb2 /temp
  6. cp openwrt-sunxi-cubie-rootfs.tar.gz /tmp
  7. cd /mnt/temp
  8. <pre>tar -zxvf /tmp/openwrt-sunxi-cubie-rootfs.tar.gz
  9. cd
  10. umount /mnt/temp
  11. </pre>
复制代码
OK~
该写入uboot了,执行:
  1. dd if=sunxi-spl.bin of=/dev/sdb bs=1024 seek=8
  2. dd if=u-boot.bin of=/dev/sdb bs=1024 seek=32
复制代码
接下来插上TTL,然后给cb放上SD卡(两个都是必需要做),在终端里安装screen:
  1. apt-get install screen -y
复制代码
接着启动:
  1. screen /dev/ttyUSB0 115200
复制代码
此时终端变空了,插上电源,在3秒倒数是按下任意按钮进入uboot命令行,输入:
  1. setenv setargs setenv bootargs console=${console} root=${root} loglevel=${loglevel} ${panicarg} ${extraargs} init=/etc/preinit

  2. saveenv
复制代码
原因:openwrt要先启动preinit而不是直接启动init
好了,使用boot命令启动吧~

最后附上启动出现的字:
  1. U-Boot SPL 2012.10-04280-g1a8ac55 (May 25 2013 - 19:42:12)
  2. DRAM: 1024MB
  3. SUNXI SD/MMC: 0


  4. U-Boot 2012.10-04280-g1a8ac55 (May 25 2013 - 19:42:12) Allwinner Technology

  5. CPU:   SUNXI Family
  6. Board: Cubieboard
  7. I2C:   ready
  8. DRAM:  1 GiB
  9. MMC:   SUNXI SD/MMC: 0
  10. In:    serial
  11. Out:   serial
  12. Err:   serial
  13. Hit any key to stop autoboot:  0
  14. reading uEnv.txt

  15. ** Unable to read "uEnv.txt" from mmc 0:1 **
  16. Loading file "uEnv.txt" from mmc device 0:1
  17. Failed to mount ext2 filesystem...
  18. ** Bad ext2 partition or disk - mmc 0:1 **
  19. ext2load - load binary file from a Ext2 filesystem

  20. Usage:
  21. ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
  22.     - load binary file 'filename' from 'dev' on 'interface'
  23.       to address 'addr' from ext2 filesystem
  24. Loading file "boot/uEnv.txt" from mmc device 0:1
  25. Failed to mount ext2 filesystem...
  26. ** Bad ext2 partition or disk - mmc 0:1 **
  27. ext2load - load binary file from a Ext2 filesystem

  28. Usage:
  29. ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
  30.     - load binary file 'filename' from 'dev' on 'interface'
  31.       to address 'addr' from ext2 filesystem
  32. reading boot.scr

  33. ** Unable to read "boot.scr" from mmc 0:1 **
  34. Loading file "boot.scr" from mmc device 0:1
  35. Failed to mount ext2 filesystem...
  36. ** Bad ext2 partition or disk - mmc 0:1 **
  37. ext2load - load binary file from a Ext2 filesystem

  38. Usage:
  39. ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
  40.     - load binary file 'filename' from 'dev' on 'interface'
  41.       to address 'addr' from ext2 filesystem
  42. Loading file "boot/boot.scr" from mmc device 0:1
  43. Failed to mount ext2 filesystem...
  44. ** Bad ext2 partition or disk - mmc 0:1 **
  45. ext2load - load binary file from a Ext2 filesystem

  46. Usage:
  47. ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
  48.     - load binary file 'filename' from 'dev' on 'interface'
  49.       to address 'addr' from ext2 filesystem
  50. reading script.bin

  51. 43628 bytes read
  52. reading uImage

  53. 3410200 bytes read
  54. ## Booting kernel from Legacy Image at 48000000 ...
  55.    Image Name:   Linux-3.4.43
  56.    Image Type:   ARM Linux Kernel Image (uncompressed)
  57.    Data Size:    3410136 Bytes = 3.3 MiB
  58.    Load Address: 40008000
  59.    Entry Point:  40008000
  60.    Verifying Checksum ... OK
  61.    Loading Kernel Image ... OK
  62. OK

  63. Starting kernel ...

  64. [    0.000000] Booting Linux on physical CPU 0
  65. [    0.000000] Linux version 3.4.43 (saverio@nockid) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r36556) ) #1 PREEMPT Sat May 25 19:11:24 CEST 2013
  66. [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
  67. [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  68. [    0.000000] Machine: sun4i
  69. [    0.000000] Memory Reserved:
  70. [    0.000000]         SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
  71. [    0.000000]         VE   : 0x44000000 - 0x48ffffff  (  80 MB)
  72. [    0.000000]         G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
  73. [    0.000000] Memory policy: ECC disabled, Data cache writeback
  74. [    0.000000] chip-id: A10 (AW1623 revision C)
  75. [    0.000000] On node 0 totalpages: 262144
  76. [    0.000000] free_area_init_node: node 0, pgdat c0669974, node_mem_map c0710000
  77. [    0.000000]   Normal zone: 1520 pages used for memmap
  78. [    0.000000]   Normal zone: 0 pages reserved
  79. [    0.000000]   Normal zone: 193040 pages, LIFO batch:31
  80. [    0.000000]   HighMem zone: 528 pages used for memmap
  81. [    0.000000]   HighMem zone: 67056 pages, LIFO batch:15
  82. [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
  83. [    0.000000] pcpu-alloc: [0] 0
  84. [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
  85. [    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait loglevel=8 panic=10 init=/etc/preinit
  86. [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
  87. [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
  88. [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
  89. [    0.000000] Memory: 1024MB = 1024MB total
  90. [    0.000000] Memory: 933936k/933936k available, 114640k reserved, 270336K highmem
  91. [    0.000000] Virtual kernel memory layout:
  92. [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  93. [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  94. [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
  95. [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
  96. [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
  97. [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
  98. [    0.000000]       .text : 0xc0008000 - 0xc0600000   (6112 kB)
  99. [    0.000000]       .init : 0xc0600000 - 0xc062a000   ( 168 kB)
  100. [    0.000000]       .data : 0xc062a000 - 0xc0672d98   ( 292 kB)
  101. [    0.000000]        .bss : 0xc0672dbc - 0xc070f220   ( 626 kB)
  102. [    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  103. [    0.000000] NR_IRQS:128
  104. [    0.000000] timer0: Periodic Mode
  105. [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
  106. [    0.000000] Console: colour dummy device 80x30
  107. [    0.000000] Calibrating delay loop... 383.38 BogoMIPS (lpj=1916928)
  108. [    0.050000] pid_max: default: 32768 minimum: 301
  109. [    0.050000] Mount-cache hash table entries: 512
  110. [    0.050000] CPU: Testing write buffer coherency: ok
  111. [    0.050000] Setting up static identity map for 0x4044dc10 - 0x4044dc68
  112. [    0.050000] devtmpfs: initialized
  113. [    0.050000] dummy:
  114. [    0.050000] NET: Registered protocol family 16
  115. [    0.050000] Init eGon pin module V2.0
  116. [    0.050000] SOFTWINNER DMA Driver, (c) 2003-2004,2006 Simtec Electronics
  117. [    0.050000] Initialize DMAC OK
  118. [    0.050000] bio: create slab <bio-0> at 0
  119. [    0.050000] SCSI subsystem initialized
  120. [    0.050000] libata version 3.00 loaded.
  121. [    0.050000] usbcore: registered new interface driver usbfs
  122. [    0.050000] usbcore: registered new interface driver hub
  123. [    0.050000] usbcore: registered new device driver usb
  124. [    0.050000] Linux video capture interface: v2.00
  125. [    0.050000] Advanced Linux Sound Architecture Driver Version 1.0.25.
  126. [    0.050000] Bluetooth: Core ver 2.16
  127. [    0.060000] NET: Registered protocol family 31
  128. [    0.060000] Bluetooth: HCI device and connection manager initialized
  129. [    0.060000] Bluetooth: HCI socket layer initialized
  130. [    0.060000] Bluetooth: L2CAP socket layer initialized
  131. [    0.060000] Bluetooth: SCO socket layer initialized
  132. [    0.060000] cfg80211: Calling CRDA to update world regulatory domain
  133. [    0.060000] Switching to clocksource aw 64bits couter
  134. [    0.060000] FS-Cache: Loaded
  135. [    0.060000] CacheFiles: Loaded
  136. [    0.090000] sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
  137. [    0.090000] sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
  138. [    0.090000] hub 1-0:1.0: USB hub found
  139. [    0.090000] hub 1-0:1.0: 1 port detected
  140. [    0.090000] NET: Registered protocol family 2
  141. [    0.090000] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
  142. [    0.090000] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
  143. [    0.100000] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
  144. [    0.100000] TCP: Hash tables configured (established 131072 bind 65536)
  145. [    0.100000] TCP: reno registered
  146. [    0.100000] UDP hash table entries: 512 (order: 1, 8192 bytes)
  147. [    0.100000] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
  148. [    0.100000] NET: Registered protocol family 1
  149. [    0.100000] audit: initializing netlink socket (disabled)
  150. [    0.100000] type=2000 audit(0.099:1): initialized
  151. [    0.100000] highmem bounce pool size: 64 pages
  152. [    0.110000] VFS: Disk quotas dquot_6.5.2
  153. [    0.110000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  154. [    0.120000] fuse init (API version 7.18)
  155. [    0.120000] msgmni has been set to 1296
  156. [    0.120000] alg: No test for stdrng (krng)
  157. [    0.120000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
  158. [    0.120000] io scheduler noop registered
  159. [    0.120000] io scheduler deadline registered
  160. [    0.120000] io scheduler cfq registered (default)
  161. [    0.120000] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
  162. [    0.130000] [uart]: used uart info.: 0x05
  163. [    0.130000] [uart]: serial probe 0 irq 1 mapbase 0x01c28000
  164. [    0.150000] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 1) is a U6_16550A
  165. [    0.680000] console [ttyS0] enabled
  166. [    0.680000] [uart]: serial probe 2 irq 3 mapbase 0x01c28800
  167. [    0.710000] sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 3) is a U6_16550A
  168. [    0.720000] G2D: drv_g2d_init
  169. [    0.720000] G2D: g2dmem: g2d_start=49000000, g2d_size=1000000
  170. [    0.730000] G2D: head:c9000000,tail:ca000000
  171. [    0.730000] G2D: Module initialized.major:252
  172. [    0.740000] brd: module loaded
  173. [    0.740000] loop: module loaded
  174. [    0.750000] [NAND]nand driver, init.
  175. [    0.750000] cmu_clk is 480
  176. [    0.750000] nand clk init end
  177. [    0.760000] offset 0xc:  0x6141
  178. [    0.760000] offset 0x14:  0x8200000b
  179. [    0.760000] [NAND] nand gpio_request
  180. [    0.770000] [NAND] nand driver version: 0x2 0x9
  181. [    0.770000] nand interrupte register ok
  182. [    0.780000] ret of NFC_ChangMode is 0
  183. [    0.780000] dma_hdle  is 0
  184. [    0.780000] dma_hdle  is 10000008
  185. [    0.790000] cmu_clk is 480
  186. [    0.790000] nand clk init end
  187. [    0.790000] offset 0xc:  0x6141
  188. [    0.800000] offset 0x14:  0x82000007
  189. [    0.860000] Dev nand: part 1, start 2048, size 131072
  190. [    0.860000] Dev nand: part 2, start 133120, size 4096
  191. [    0.870000] Dev nand: part 3, start 137216, size 2097152
  192. [    0.870000] Dev nand: part 4, start 2234368, size 2097152
  193. [    0.880000] Dev nand: part 5, start 4331520, size 2097152
  194. [    0.880000] Dev nand: part 6, start 6428672, size 1048576
  195. [    0.890000] Dev nand: part 7, start 7477248, size 501760
  196. [    0.890000]  nand: nanda nandb nandc nandd nande nandf nandg
  197. [    0.900000] benn: nand probe enter
  198. [    0.910000] [NAND]nand driver, ok.
  199. [    0.910000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  200. [    0.920000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  201. [    0.920000] [sw-ehci1]: open clock
  202. [    0.950000] [sw-ehci1]: Set USB Power ON
  203. [    0.950000] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  204. [    0.960000] sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2
  205. [    0.960000] sw-ehci sw-ehci.1: irq 39, io mem 0xf1c14000
  206. [    0.990000] sw-ehci sw-ehci.1: USB 0.0 started, EHCI 1.00
  207. [    0.990000] hub 2-0:1.0: USB hub found
  208. [    1.000000] hub 2-0:1.0: 1 port detected
  209. [    1.000000] [sw-ohci1]: open clock
  210. [    1.020000] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
  211. [    1.030000] sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3
  212. [    1.040000] sw-ohci sw-ohci.1: irq 64, io mem 0xf1c14400
  213. [    1.100000] hub 3-0:1.0: USB hub found
  214. [    1.100000] hub 3-0:1.0: 1 port detected
  215. [    1.110000] [sw-ehci2]: open clock
  216. [    1.130000] [sw-ehci2]: Set USB Power ON
  217. [    1.140000] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  218. [    1.140000] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4
  219. [    1.150000] sw-ehci sw-ehci.2: irq 40, io mem 0xf1c1c000
  220. [    1.180000] sw-ehci sw-ehci.2: USB 0.0 started, EHCI 1.00
  221. [    1.180000] hub 4-0:1.0: USB hub found
  222. [    1.190000] hub 4-0:1.0: 1 port detected
  223. [    1.190000] [sw-ohci2]: open clock
  224. [    1.210000] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
  225. [    1.220000] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5
  226. [    1.230000] sw-ohci sw-ohci.2: irq 65, io mem 0xf1c1c400
  227. [    1.290000] hub 5-0:1.0: USB hub found
  228. [    1.290000] hub 5-0:1.0: 1 port detected
  229. [    1.300000] mousedev: PS/2 mouse device common for all mice
  230. [    1.300000] sunxi RTC version 0.1
  231. [    1.310000] sunxi-rtc sunxi-rtc: sunxi_rtc_probe tmp_data = 380248073
  232. [    1.310000] sunxi-rtc sunxi-rtc: sunxi_rtc_gettime
  233. [    1.320000] sunxi-rtc sunxi-rtc: read time 2010-1-1 0:4:16
  234. [    1.330000] sunxi-rtc sunxi-rtc: sunxi_rtc_gettime
  235. [    1.330000] sunxi-rtc sunxi-rtc: read time 2010-1-1 0:4:16
  236. [    1.340000] sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0
  237. [    1.340000] i2c /dev entries driver
  238. [    1.350000] lirc_dev: IR Remote Control driver registered, major 251
  239. [    1.350000] IR NEC protocol handler initialized
  240. [    1.360000] IR RC5(x) protocol handler initialized
  241. [    1.360000] IR RC6 protocol handler initialized
  242. [    1.370000] IR JVC protocol handler initialized
  243. [    1.370000] IR Sony protocol handler initialized
  244. [    1.380000] IR RC5 (streamzap) protocol handler initialized
  245. [    1.380000] IR SANYO protocol handler initialized
  246. [    1.390000] IR MCE Keyboard/mouse protocol handler initialized
  247. [    1.390000] IR LIRC bridge handler initialized
  248. [    1.400000] [cedar dev]: install start!!!
  249. [    1.400000] [cedar dev]: install end!!!
  250. [    1.400000] [ace_drv] start!!!
  251. [    1.410000] [ace_drv] init end!!!
  252. [    1.410000] [pa_drv] start!!!
  253. [    1.410000] [pa_drv] init end!!!
  254. [    1.420000] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
  255. [    1.430000] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
  256. [    1.430000] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  257. [    1.440000] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  258. [    1.450000] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  259. [    1.460000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  260. [    1.470000] Bluetooth: HCI UART driver ver 2.2
  261. [    1.470000] Bluetooth: HCI H4 protocol initialized
  262. [    1.480000] Bluetooth: HCI BCSP protocol initialized
  263. [    1.480000] Bluetooth: HCILL protocol initialized
  264. [    1.480000] cpuidle: using governor ladder
  265. [    1.490000] cpuidle: using governor menu
  266. [    1.490000] [mmc_pm]: no sdio card used in configuration
  267. [    1.500000] [mmc]: sunximmc_init
  268. [    1.500000] [mmc]: sunxi mmc controller using config : 0xb
  269. [    1.510000] [mmc]: sunxi-mmc.0: pdev->name: sunxi-mmc, pdev->id: 0
  270. [    1.510000] [mmc]: mmc 0 power off !!
  271. [    1.520000] [mmc]: mmc0 Probe: base:0xf1c0f000 irq:32 dma:0 pdes:0xef394000, ret 0.
  272. [    1.530000] [mmc]: sunxi-mmc.1: pdev->name: sunxi-mmc, pdev->id: 1
  273. [    1.530000] [mmc]: mmc 1 power off !!
  274. [    1.540000] [mmc]: mmc1 Probe: base:0xf1c10000 irq:33 dma:0 pdes:0xef398000, ret 0.
  275. [    1.550000] [mmc]: sunxi-mmc.3: pdev->name: sunxi-mmc, pdev->id: 3
  276. [    1.550000] [mmc]: mmc 3 power off !!
  277. [    1.560000] [mmc]: mmc3 Probe: base:0xf1c12000 irq:35 dma:0 pdes:0xef39c000, ret 0.
  278. [    1.570000] IPv4 over IPv4 tunneling driver
  279. [    1.570000] TCP: cubic registered
  280. [    1.570000] Initializing XFRM netlink socket
  281. [    1.580000] NET: Registered protocol family 10
  282. [    1.590000] IPv6 over IPv4 tunneling driver
  283. [    1.590000] NET: Registered protocol family 17
  284. [    1.600000] NET: Registered protocol family 15
  285. [    1.600000] Bluetooth: RFCOMM TTY layer initialized
  286. [    1.610000] Bluetooth: RFCOMM socket layer initialized
  287. [    1.610000] Bluetooth: RFCOMM ver 1.11
  288. [    1.620000] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
  289. [    1.620000] Bluetooth: BNEP filters: protocol multicast
  290. [    1.630000] 8021q: 802.1Q VLAN Support v1.8
  291. [    1.630000] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
  292. [    1.640000] Registering SWP/SWPB emulation handler
  293. [    1.640000] registered taskstats version 1
  294. [    1.650000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  295. [    1.660000] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  296. [    1.660000] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  297. [    1.670000] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  298. [    1.680000] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
  299. [    1.690000] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
  300. [    1.690000] sunxi-rtc sunxi-rtc: sunxi_rtc_gettime
  301. [    1.700000] sunxi-rtc sunxi-rtc: read time 2010-1-1 0:4:16
  302. [    1.710000] sunxi-rtc sunxi-rtc: setting system clock to 2010-01-01 00:04:16 UTC (1262304256)
  303. [    1.710000] ALSA device list:
  304. [    1.720000]   No soundcards found.
  305. [    1.720000] Waiting for root device /dev/mmcblk0p2...
  306. [    2.520000] [mmc]: mmc 0 detect change, present 1
  307. [    2.820000] [mmc]: mmc 0 power on !!
  308. [    2.860000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 52,  RTO !!
  309. [    2.860000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 52,  RTO !!
  310. [    2.870000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 8,  RTO !!
  311. [    2.880000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
  312. [    2.890000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
  313. [    2.900000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
  314. [    2.900000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
  315. [    2.920000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 8,  RTO !!
  316. [    2.940000] mmc0: new high speed SD card at address 0260
  317. [    2.950000] mmcblk0: mmc0:0260 NCard 481 MiB
  318. [    2.960000]  mmcblk0: p1 p2
  319. [    2.960000] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
  320. [    2.970000] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
  321. [    2.980000] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  322. [    2.980000] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  323. [    2.990000] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  324. [    3.000000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  325. [    3.050000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
  326. [    3.060000] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
  327. [    3.080000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  328. [    3.090000] VFS: Mounted root (ext4 filesystem) on device 179:2.
  329. [    3.100000] devtmpfs: mounted
  330. [    3.100000] Freeing init memory: 168K
  331. probing /dev/mmcblk0 for uboot env data
  332. Detected generic sunxi // generic sunxi
  333. - preinit -
  334. Press the [f] key and hit [enter] to enter failsafe mode
  335. - regular preinit -
  336. [    9.270000] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
  337. - init -

  338. Please press Enter to activate this console. [   10.500000] !!! base_Addr = 0xf1c2ac00
  339. [   10.510000] config i2c gpio with gpio_config api
  340. [   10.510000] twi0, apb clock = 24000000
  341. [   10.530000] axp_mfd 0-0034: AXP (CHIP ID: 0x41) detected
  342. [   10.550000] axp20_ldo1: 1300 mV
  343. [   10.570000] axp20_ldo2: 1800 <--> 3300 mV at 3000 mV
  344. [   10.600000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  345. [   10.600000] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  346. [   10.620000] axp20_ldo3: 700 <--> 3500 mV at 2800 mV
  347. [   10.640000] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  348. [   10.640000] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  349. [   10.680000] axp20_ldo4: 1250 <--> 3300 mV at 2800 mV
  350. [   10.740000] axp20_ldo2: Failed to create debugfs directory
  351. [   10.740000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  352. [   10.820000] axp20_buck2: 700 <--> 2275 mV at 1400 mV
  353. [   10.820000] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  354. [   10.900000] axp20_buck3: 700 <--> 3500 mV at 1250 mV
  355. [   10.970000] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  356. [   10.990000] axp20_ldoio0: 1800 <--> 3300 mV at 2800 mV
  357. [   11.080000] input: axp20-supplyer as /devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.41/input/input0
  358. [   11.380000] I2C: i2c-0: AW16XX I2C adapter
  359. [   11.490000] !!! base_Addr = 0xf1c2b000
  360. [   11.490000] twi1, apb clock = 24000000
  361. [   11.580000] I2C: i2c-1: AW16XX I2C adapter
  362. [   11.650000] !!! base_Addr = 0xf1c2b400
  363. [   11.650000] twi2, apb clock = 24000000
  364. [   11.760000] I2C: i2c-2: AW16XX I2C adapter
  365. [   11.930000] enter sun4i Audio codec!!!
  366. [   11.930000] sun4i audio support initialized
  367. [   11.940000] sun4i Audio codec successfully loaded..
  368. [   11.960000] input: sun4i-ir as /devices/virtual/input/input1
  369. [   11.960000] IR Initial OK
  370. [   11.970000] wemac Ethernet Driver, V1.01 in file:drivers/net/ethernet/sun4i/sun4i_wemac.c
  371. [   11.980000] [EMAC] ahb clk enable
  372. [   11.980000] [EMAC] ahb gate clk: 0x2615f
  373. [   12.030000] emac MAC isn't valid!
  374. [   12.040000] sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP
  375. [   12.050000] sw_ahci sw_ahci.0: forcing PORTS_IMPL to 0x1
  376. [   12.060000] sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
  377. [   12.070000] sw_ahci sw_ahci.0: flags: ncq sntf pm led clo only pio slum part ccc
  378. [   12.070000] scsi0 : sw_ahci_platform
  379. [   12.080000] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 56
  380. [   12.440000] ata1: SATA link down (SStatus 0 SControl 300)
  381. [   12.480000] PPP generic driver version 2.4.2
  382. [   12.500000] tun: Universal TUN/TAP device driver, 1.6
  383. [   12.500000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
  384. [   12.540000] ip_tables: (C) 2000-2006 Netfilter Core Team
  385. [   12.600000] xt_time: kernel timezone is -0000
  386. [   12.630000] nf_conntrack version 0.5.0 (14595 buckets, 58380 max)
  387. [   12.730000] usbcore: registered new interface driver cdc_acm
  388. [   12.740000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
  389. [   12.760000] usbcore: registered new interface driver usbserial
  390. [   12.770000] usbcore: registered new interface driver usbserial_generic
  391. [   12.780000] USB Serial support registered for generic
  392. [   12.780000] usbserial: USB Serial Driver core
  393. [   12.800000] Initializing USB Mass Storage driver...
  394. [   12.810000] usbcore: registered new interface driver usb-storage
  395. [   12.810000] USB Mass Storage support registered.
  396. [   12.820000] usbcore: registered new interface driver cdc_ncm
  397. [   12.850000] usbcore: registered new interface driver option
  398. [   12.860000] USB Serial support registered for GSM modem (1-port)
  399. [   12.900000] usbcore: registered new interface driver uvcvideo
  400. [   12.900000] USB Video Class driver (1.1.1)
  401. [   16.030000] wemac wemac.0: WARNING: no IRQ resource flags set.
  402. [   16.140000] wemac wemac.0: eth0: link down
  403. [   16.140000] ADDRCONF(NETDEV_UP): eth0: link is not ready
  404. [   16.210000] device eth0 entered promiscuous mode
  405. [   16.210000] ADDRCONF(NETDEV_UP): br-lan: link is not ready



  406. BusyBox v1.19.4 (2013-05-25 19:11:40 CEST) built-in shell (ash)
  407. Enter 'help' for a list of built-in commands.

  408.   _______                     ________        __
  409. |       |.-----.-----.-----.|  |  |  |.----.|  |_
  410. |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  411. |_______||   __|_____|__|__||________||__|  |____|
  412.           |__| W I R E L E S S   F R E E D O M
  413. -----------------------------------------------------
  414. BARRIER BREAKER (Bleeding Edge, r36713)
  415. -----------------------------------------------------
  416.   * 1/2 oz Galliano         Pour all ingredients into
  417.   * 4 oz cold Coffee        an irish coffee mug filled
  418.   * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  419.   * 2 tsp. Creme de Cacao
  420. -----------------------------------------------------
  421. root@OpenWrt:/#
复制代码
Busybox:
  1. root@OpenWrt:/# busybox
  2. BusyBox v1.19.4 (2013-05-25 19:11:40 CEST) multi-call binary.
  3. Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
  4. and others. Licensed under GPLv2.
  5. See source distribution for full notice.

  6. Usage: busybox [function] [arguments]...
  7.    or: busybox --list[-full]
  8.    or: function [arguments]...

  9.         BusyBox is a multi-call binary that combines many common Unix
  10.         utilities into a single executable.  Most people will create a
  11.         link to busybox for each function they wish to use and BusyBox
  12.         will act like whatever it was invoked as.

  13. Currently defined functions:
  14.         [, [[, arping, ash, awk, basename, brctl, bunzip2, bzcat, cat, chgrp,
  15.         chmod, chown, chroot, clear, cmp, cp, crond, crontab, cut, date, dd,
  16.         df, dirname, dmesg, du, echo, egrep, env, expr, false, fgrep, find,
  17.         free, fsync, grep, gunzip, gzip, halt, head, hexdump, hostid, hwclock,
  18.         id, ifconfig, init, insmod, kill, killall, klogd, less, ln, lock,
  19.         logger, logread, ls, lsmod, md5sum, mkdir, mkfifo, mknod, mkswap,
  20.         mktemp, mount, mv, nc, netmsg, netstat, nice, nslookup, ntpd, passwd,
  21.         pgrep, pidof, ping, ping6, pivot_root, poweroff, printf, ps, pwd,
  22.         readlink, reboot, reset, rm, rmdir, rmmod, route, sed, seq, sh, sleep,
  23.         sort, start-stop-daemon, strings, swapoff, swapon, switch_root, sync,
  24.         sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, time, top,
  25.         touch, tr, traceroute, true, udhcpc, umount, uname, uniq, uptime,
  26.         vconfig, vi, watchdog, wc, wget, which, xargs, yes, zcat

  27. root@OpenWrt:/#
复制代码
回复

使用道具 举报

发表于 2013-8-23 01:12:50 | 显示全部楼层
这样弄OPENWRT在SD卡上启动比较繁琐
回复 支持 反对

使用道具 举报

发表于 2013-9-5 15:10:52 | 显示全部楼层
请问安装了OpenWRT在CB上,如何添加自己需要的东西呢?比如我想加一个可以实现文件转换的小程序,除了写这个程序之外,还需要怎样添加到OpenWRT上呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-6 22:40:35 | 显示全部楼层
komoner0 发表于 2013-9-5 15:10
请问安装了OpenWRT在CB上,如何添加自己需要的东西呢?比如我想加一个可以实现文件转换的小程序,除了写这 ...

ow里面有opkg命令能安装东西,但是sunxi目前不可用因为官网没这玩意。外部添加程序请用scp
回复 支持 反对

使用道具 举报

发表于 2013-12-20 21:43:13 | 显示全部楼层
可否支持CB3?
回复 支持 反对

使用道具 举报

发表于 2013-12-21 14:51:26 | 显示全部楼层
好东西,先谢谢了,cb2,买卡准备刷
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-1-16 13:25:51 | 显示全部楼层
zpd1047 发表于 2013-12-21 14:51
好东西,先谢谢了,cb2,买卡准备刷

cb2有内核问题,还是要编译
回复 支持 反对

使用道具 举报

发表于 2014-7-24 16:58:16 | 显示全部楼层
最近正想搞这个,谢谢楼主
回复 支持 反对

使用道具 举报

发表于 2014-11-23 14:58:28 | 显示全部楼层
下载包的速度很慢啊,动不动就中断了。版主能不能放一个编译好的镜像出来?
回复 支持 反对

使用道具 举报

发表于 2015-3-31 12:03:39 | 显示全部楼层
zpd1047 发表于 2013-12-21 14:51
好东西,先谢谢了,cb2,买卡准备刷

cb2怎么编译这玩意,装GCC失败
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-22 14:35 , Processed in 0.028512 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部