Advertisement
Guest User

R36 flashing steps

a guest
Sep 6th, 2012
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.20 KB | None | 0 0
  1. reflashing r36
  2.  
  3. connect bus pirate
  4.  
  5. ground is tan with black connector, connect to pin 1
  6. miso is black with black connector, connect to pin 2
  7. mosi is grey with yellow connector, connect to pin 3
  8. no connect to pin 4
  9.  
  10. mode uart
  11. 115200 8n1, defaults (output type 2, normal)
  12. transparent bridge (then plug in r36)
  13.  
  14. select 2, or option that you want to use
  15.  
  16. make sure tftp server is running with WINDOWS FIREWALL OFF!
  17.  
  18. set ip's and img name
  19.  
  20. le flash
  21.  
  22. 13851fd1a250cc59eb691bb77ccccc15 *openwrt-ramips-rt305x-w502u-squashfs-sysupgrade.bin
  23.  
  24.  
  25. HiZ>?
  26. General Protocol interaction
  27. ---------------------------------------------------------------------------
  28. ? This help (0) List current macros
  29. =X/|X Converts X/reverse X (x) Macro x
  30. ~ Selftest [ Start
  31. # Reset ] Stop
  32. $ Jump to bootloader { Start with read
  33. &/% Delay 1 us/ms } Stop
  34. a/A/@ AUXPIN (low/HI/READ) "abc" Send string
  35. b Set baudrate 123
  36. c/C AUX assignment (aux/CS) 0x123
  37. d/D Measure ADC (once/CONT.) 0b110 Send value
  38. f Measure frequency r Read
  39. g/S Generate PWM/Servo / CLK hi
  40. h Commandhistory \ CLK lo
  41. i Versioninfo/statusinfo ^ CLK tick
  42. l/L Bitorder (msb/LSB) - DAT hi
  43. m Change mode _ DAT lo
  44. o Set output type . DAT read
  45. p/P Pullup resistors (off/ON) ! Bit read
  46. s Script engine : Repeat e.g. r:10
  47. v Show volts/states . Bits to read/write e.g. 0x55.2
  48. w/W PSU (off/ON) <x>/<x= >/<0> Usermacro x/assign x/list all
  49. HiZ>m
  50. 1. HiZ
  51. 2. 1-WIRE
  52. 3. UART
  53. 4. I2C
  54. 5. SPI
  55. 6. 2WIRE
  56. 7. 3WIRE
  57. 8. LCD
  58. 9. DIO
  59. x. exit(without change)
  60.  
  61. (1)>3
  62. Set serial port speed: (bps)
  63. 1. 300
  64. 2. 1200
  65. 3. 2400
  66. 4. 4800
  67. 5. 9600
  68. 6. 19200
  69. 7. 38400
  70. 8. 57600
  71. 9. 115200
  72. 10. BRG raw value
  73.  
  74. (1)>9
  75. Data bits and parity:
  76. 1. 8, NONE *default
  77. 2. 8, EVEN
  78. 3. 8, ODD
  79. 4. 9, NONE
  80. (1)>1
  81. Stop bits:
  82. 1. 1 *default
  83. 2. 2
  84. (1)>1
  85. Receive polarity:
  86. 1. Idle 1 *default
  87. 2. Idle 0
  88. (1)>1
  89. Select output type:
  90. 1. Open drain (H=Hi-Z, L=GND)
  91. 2. Normal (H=3.3V, L=GND)
  92.  
  93. (1)>2
  94. Ready
  95. UART>(1)
  96. UART bridge
  97. Reset to exit
  98. Are you sure? y
  99. \00\00
  100.  
  101.  
  102. U-Boot 1.1.3 (Oct 4 2010 - 15:34:52)
  103.  
  104.  
  105. Board: Ralink APSoC DRAM: 32 MB
  106.  
  107. relocate_code Pointer at: 81fb0000
  108.  
  109. flash_protect ON: from 0xBF000000 to 0xBF01D423
  110.  
  111. flash_protect ON: from 0xBF030000 to 0xBF030FFF
  112.  
  113. ============================================
  114.  
  115. Ralink UBoot Version: 3.3
  116.  
  117. --------------------------------------------
  118.  
  119. ASIC 3052_MP2 (Port5<->None)
  120.  
  121. DRAM component: 256 Mbits SDR
  122.  
  123. DRAM bus: 16 bit
  124.  
  125. Total memory: 32 MBytes
  126.  
  127. Flash component: NOR Flash
  128.  
  129. Date:Oct 4 2010 Time:15:34:52
  130.  
  131. ============================================
  132.  
  133. icache: sets:256, ways:4, linesz:32 ,total:32768
  134.  
  135. dcache: sets:128, ways:4, linesz:32 ,total:16384
  136.  
  137.  
  138. ##### The CPU freq = 320 MHZ ####
  139. SDRAM bus set to 16 bit
  140.  
  141. SDRAM size =32 Mbytes
  142.  
  143.  
  144. Please choose the operation:
  145.  
  146. 1: Load system code to SDRAM via TFTP.
  147.  
  148. 2: Load system code then write to Flash via TFTP.
  149.  
  150. 3: Boot system code via Flash (default).
  151.  
  152. 4: Entr boot command line interface.
  153.  
  154. 9: Load Boot Loader code then write to Flash via TFTP.
  155.  
  156.  1  0
  157.  
  158.  
  159.  
  160. 3: System Boot system code via Flash.
  161.  
  162. ## Booting image at bf050000 ...
  163.  
  164. Image Name: MIPS OpenWrt Linux-3.3.8
  165.  
  166. Created: 2012-09-05 21:23:33 UTC
  167.  
  168. Image Type: MIPS Linux Kernel Image (lzma compressed)
  169.  
  170. Data Size: 837983 Bytes = 818.3 kB
  171.  
  172. Load Address: 80000000
  173.  
  174. Entry Point: 80000000
  175.  
  176. Verifying Checksum ... OK
  177.  
  178. Uncompressing Kernel Image ... OK
  179.  
  180. No initrd
  181.  
  182. ## Transferring control to Linux (at address 80000000) ...
  183.  
  184. ## Giving linux memsize in MB, 32
  185.  
  186.  
  187. Starting kernel ...
  188.  
  189.  
  190. [ 0.000000] Linux version 3.3.8 (badger@Optimus) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Wed Sep 5 15:22:46 MDT 2012
  191. [ 0.000000] bootconsole [early0] enabled
  192. [ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
  193. [ 0.000000] Ralink RT3350 id:1 rev:2 running at 320.00 MHz
  194. [ 0.000000] Determined physical RAM map:
  195. [ 0.000000] memory: 02000000 @ 00000000 (usable)
  196. [ 0.000000] Initrd not found or empty - disabling initrd
  197. [ 0.000000] Zone PFN ranges:
  198. [ 0.000000] Normal 0x00000000 -> 0x00002000
  199. [ 0.000000] Movable zone start PFN for each node
  200. [ 0.000000] Early memory PFN ranges
  201. [ 0.000000] 0: 0x00000000 -> 0x00002000
  202. [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
  203. [ 0.000000] Kernel command line: board=W502U console=ttyS1,115200 mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware) rootfstype=squashfs,jffs2
  204. [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
  205. [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  206. [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  207. [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  208. [ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
  209. [ 0.000000] Writing ErrCtl register=00003b9f
  210. [ 0.000000] Readback ErrCtl register=00003b9f
  211. [ 0.000000] Memory: 29940k/32768k available (1918k kernel code, 2828k reserved, 321k data, 172k init, 0k highmem)
  212. [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  213. [ 0.000000] NR_IRQS:48
  214. [ 0.000000] console [ttyS1] enabled, bootconsole disabled
  215. [ 0.000000] console [ttyS1] enabled, bootconsole disabled
  216. [ 0.010000] Calibrating delay loop... 212.58 BogoMIPS (lpj=1062912)
  217. [ 0.090000] pid_max: default: 32768 minimum: 301
  218. [ 0.090000] Mount-cache hash table entries: 512
  219. [ 0.100000] NET: Registered protocol family 16
  220. [ 0.110000] MIPS: machine is ALFA Networks W502U
  221. [ 0.110000] gpiochip_add: registered GPIOs 0 to 23 on device: RT305X-GPIO0
  222. [ 0.120000] gpiochip_add: registered GPIOs 24 to 39 on device: RT305X-GPIO1
  223. [ 0.120000] gpiochip_add: registered GPIOs 40 to 51 on device: RT305X-GPIO2
  224. [ 0.150000] bio: create slab <bio-0> at 0
  225. [ 0.160000] Switching to clocksource MIPS
  226. [ 0.170000] NET: Registered protocol family 2
  227. [ 0.180000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  228. [ 0.190000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
  229. [ 0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  230. [ 0.200000] TCP: Hash tables configured (established 1024 bind 1024)
  231. [ 0.210000] TCP reno registered
  232. [ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
  233. [ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  234. [ 0.220000] NET: Registered protocol family 1
  235. [ 0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
  236. [ 0.280000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
  237. [ 0.290000] msgmni has been set to 58
  238. [ 0.300000] io scheduler noop registered
  239. [ 0.300000] io scheduler deadline registered (default)
  240. [ 0.310000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
  241. [ 0.310000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
  242. [ 0.320000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
  243. [ 0.330000] physmap platform flash device: 00800000 at bf000000
  244. [ 0.340000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
  245. [ 0.350000] Amd/Fujitsu Extended Query Table at 0x0040
  246. [ 0.360000] Amd/Fujitsu Extended Query version 1.1.
  247. [ 0.360000] number of CFI chips: 1
  248. [ 0.360000] 6 cmdlinepart partitions found on MTD device physmap-flash.0
  249. [ 0.370000] Creating 6 MTD partitions on "physmap-flash.0":
  250. [ 0.380000] 0x000000000000-0x000000030000 : "u-boot"
  251. [ 0.390000] 0x000000030000-0x000000040000 : "u-boot-env"
  252. [ 0.400000] 0x000000040000-0x000000050000 : "factory"
  253. [ 0.410000] 0x000000050000-0x000000130000 : "kernel"
  254. [ 0.410000] 0x000000130000-0x000000800000 : "rootfs"
  255. [ 0.420000] mtd: partition "rootfs" set to be root filesystem
  256. [ 0.430000] mtd: partition "rootfs_data" created automatically, ofs=290000, len=570000
  257. [ 0.440000] 0x000000290000-0x000000800000 : "rootfs_data"
  258. [ 0.450000] 0x000000050000-0x000000800000 : "firmware"
  259. [ 0.470000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 40, using 40
  260. [ 0.480000] TCP cubic registered
  261. [ 0.480000] NET: Registered protocol family 17
  262. [ 0.490000] 8021q: 802.1Q VLAN Support v1.8
  263. [ 0.500000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
  264. [ 0.510000] Freeing unused kernel memory: 172k freed
  265. [ 2.810000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
  266. [ 2.890000] Button Hotplug driver version 0.4.1
  267. - preinit -
  268. Press the [f] key and hit [enter] to enter failsafe mode
  269. - regular preinit -
  270. [ 6.450000] JFFS2 notice: (349) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 5 of xref (0 dead, 2 orphan) found.
  271. switching to jffs2
  272. - init -
  273.  
  274. Please press Enter to activate this console. [ 7.560000] Compat-wireless backport release: compat-wireless-2012-07-13
  275. [ 7.570000] Backport based on wireless-testing.git master-2012-07-16
  276. [ 7.570000] compat.git: wireless-testing.git
  277. [ 7.640000] cfg80211: Calling CRDA to update world regulatory domain
  278. [ 7.640000] cfg80211: World regulatory domain updated:
  279. [ 7.650000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  280. [ 7.660000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  281. [ 7.660000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  282. [ 7.670000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  283. [ 7.680000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  284. [ 7.690000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  285. [ 8.260000] usbcore: registered new interface driver usbfs
  286. [ 8.260000] usbcore: registered new interface driver hub
  287. [ 8.270000] usbcore: registered new device driver usb
  288. [ 8.890000] PPP generic driver version 2.4.2
  289. [ 9.100000] ip_tables: (C) 2000-2006 Netfilter Core Team
  290. [ 9.400000] NET: Registered protocol family 24
  291. [ 9.440000] nf_conntrack version 0.5.0 (470 buckets, 1880 max)
  292. [ 9.900000] dwc_otg: version 2.72a 24-JUN-2008
  293. [ 9.910000] dwc_otg: Core Release: 2.66a
  294. [ 10.110000] dwc_otg: Periodic Transfer Interrupt Enhancement - disabled
  295. [ 10.120000] dwc_otg: Multiprocessor Interrupt Enhancement - disabled
  296. [ 10.120000] dwc_otg: Using DMA mode
  297. [ 10.130000] dwc_otg: Device using Buffer DMA mode
  298. [ 10.130000] dwc_otg dwc_otg.0: DWC OTG Controller
  299. [ 10.140000] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
  300. [ 10.140000] dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000
  301. [ 10.150000] dwc_otg: Init: Port Power? op_state=1
  302. [ 10.160000] dwc_otg: Init: Power Port (0)
  303. [ 10.160000] hub 1-0:1.0: USB hub found
  304. [ 10.160000] hub 1-0:1.0: 1 port detected
  305. [ 14.080000] device eth0.1 entered promiscuous mode
  306. [ 14.080000] device eth0 entered promiscuous mode
  307. [ 14.090000] br-lan: port 1(eth0.1) entered forwarding state
  308. [ 14.090000] br-lan: port 1(eth0.1) entered forwarding state
  309. [ 16.090000] br-lan: port 1(eth0.1) entered forwarding state
  310. [ 16.310000] ramips-wdt: timeout value 60 must be 0 < timeout <= 40, using 40
  311.  
  312.  
  313.  
  314. BusyBox v1.19.4 (2012-09-05 15:19:06 MDT) built-in shell (ash)
  315. Enter 'help' for a list of built-in commands.
  316.  
  317. _______ ________ __
  318. | |.-----.-----.-----.| | | |.----.| |_
  319. | - || _ | -__| || | | || _|| _|
  320. |_______|| __|_____|__|__||________||__| |____|
  321. |__| W I R E L E S S F R E E D O M
  322. -----------------------------------------------------
  323. ATTITUDE ADJUSTMENT (Bleeding Edge, r33315)
  324. -----------------------------------------------------
  325. * 1/4 oz Vodka Pour all ingredients into mixing
  326. * 1/4 oz Gin tin with ice, strain into glass.
  327. * 1/4 oz Amaretto
  328. * 1/4 oz Triple sec
  329. * 1/4 oz Peach schnapps
  330. * 1/4 oz Sour mix
  331. * 1 splash Cranberry juice
  332. -----------------------------------------------------
  333. root@OpenWrt:/# uname -a
  334. Linux OpenWrt 3.3.8 #1 Wed Sep 5 15:22:46 MDT 2012 mips GNU/Linux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement