Skip to content

Instantly share code, notes, and snippets.

@Tho85
Last active August 28, 2016 12:26
Show Gist options
  • Save Tho85/918866e4b5bc67dd81cacf8ad9fe53e0 to your computer and use it in GitHub Desktop.
Save Tho85/918866e4b5bc67dd81cacf8ad9fe53e0 to your computer and use it in GitHub Desktop.
U-Boot 1.1.3 (Nov 18 2012 - 20:35:15)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb4000
spi_wait_nsec: 42
spi device id: ef 40 17 0 0 (40170000)
find flash: W25Q64BV
raspi_read: from:20000 len:1000
.raspi_read: from:20000 len:1000
.============================================
Ralink UBoot Version: 3.5.3.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: 8 MBytes NOR Flash
Date:Nov 18 2012 Time:20:35:15
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 360 MHZ ####
estimate memory size =32 Mbytes
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP. 4
You choosed 2
0
raspi_read: from:30028 len:6
.
2: System Load Linux Kernel then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Please Input new ones /or Ctrl-C to discard
Input device IP (192.168.1.90) ==:192.168.1.90
Input server IP (192.168.1.20) ==:192.168.1.20
Input Linux Kernel filename (openwrt.bin) ==:openwrt.bin
netboot_common, argc= 3
NetTxPacket = 0x81FE5A80
KSEG1ADDR(NetTxPacket) = 0xA1FE5A80
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
Header Payload scatter function is Disable !!
ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.1.20; our IP address is 192.168.1.90
Filename 'openwrt.bin'.
TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
ArpTimeoutCheck
T T T T Got ARP REPLY, set server/gtwy eth addr (12:34:56:78:9a:bc)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##
done
Bytes transferred = 3670020 (380004 hex)
NetBootFileXferSize= 00380004
ranand_erase_write...:k,bc040000,bc000000raspi_erase_write: offs:40000, count:380004
raspi_erase: offs:40000 len:380000
........................................................
raspi_write: to:40000 len:380000
........................................................
raspi_read: from:40000 len:10000
.raspi_read: from:50000 len:10000
.raspi_read: from:60000 len:10000
.raspi_read: from:70000 len:10000
.raspi_read: from:80000 len:10000
.raspi_read: from:90000 len:10000
.raspi_read: from:a0000 len:10000
.raspi_read: from:b0000 len:10000
.raspi_read: from:c0000 len:10000
.raspi_read: from:d0000 len:10000
.raspi_read: from:e0000 len:10000
.raspi_read: from:f0000 len:10000
.raspi_read: from:100000 len:10000
.raspi_read: from:110000 len:10000
.raspi_read: from:120000 len:10000
.raspi_read: from:130000 len:10000
.raspi_read: from:140000 len:10000
.raspi_read: from:150000 len:10000
.raspi_read: from:160000 len:10000
.raspi_read: from:170000 len:10000
.raspi_read: from:180000 len:10000
.raspi_read: from:190000 len:10000
.raspi_read: from:1a0000 len:10000
.raspi_read: from:1b0000 len:10000
.raspi_read: from:1c0000 len:10000
.raspi_read: from:1d0000 len:10000
.raspi_read: from:1e0000 len:10000
.raspi_read: from:1f0000 len:10000
.raspi_read: from:200000 len:10000
.raspi_read: from:210000 len:10000
.raspi_read: from:220000 len:10000
.raspi_read: from:230000 len:10000
.raspi_read: from:240000 len:10000
.raspi_read: from:250000 len:10000
.raspi_read: from:260000 len:10000
.raspi_read: from:270000 len:10000
.raspi_read: from:280000 len:10000
.raspi_read: from:290000 len:10000
.raspi_read: from:2a0000 len:10000
.raspi_read: from:2b0000 len:10000
.raspi_read: from:2c0000 len:10000
.raspi_read: from:2d0000 len:10000
.raspi_read: from:2e0000 len:10000
.raspi_read: from:2f0000 len:10000
.raspi_read: from:300000 len:10000
.raspi_read: from:310000 len:10000
.raspi_read: from:320000 len:10000
.raspi_read: from:330000 len:10000
.raspi_read: from:340000 len:10000
.raspi_read: from:350000 len:10000
.raspi_read: from:360000 len:10000
.raspi_read: from:370000 len:10000
.raspi_read: from:380000 len:10000
.raspi_read: from:390000 len:10000
.raspi_read: from:3a0000 len:10000
.raspi_read: from:3b0000 len:10000
.raspi_read: from:3c0000 len:10000
.raspi_erase: offs:3c0000 len:10000
.
raspi_write: to:3c0000 len:10000
.
raspi_read: from:3c0000 len:10000
.Done!
## Booting image at bc040000 ...
raspi_read: from:40000 len:40
. Image Name: MIPS OpenWrt Linux-4.4.14
Created: 2016-08-28 11:20:09 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1212587 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:40040 len:1280ab
................... Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32
Starting kernel ...
[ 0.000000] Linux version 4.4.14 (work@s440) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49927) ) #1 Sun Aug 28 12:09:57 UTC 2016
[ 0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[ 0.000000] MIPS: machine is WC0030A
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS1,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=0004a14e
[ 0.000000] Readback ErrCtl register=0004a14e
[ 0.000000] Memory: 28492K/32768K available (2739K kernel code, 125K rwdata, 652K rodata, 188K init, 191K bss, 4276K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 360MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10618113593 ns
[ 0.000016] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
[ 0.015667] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[ 0.090882] pid_max: default: 32768 minimum: 301
[ 0.100334] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.113417] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.136713] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.156573] pinctrl core: initialized pinctrl subsystem
[ 0.168314] NET: Registered protocol family 16
[ 0.220052] rt2880_gpio 10000600.gpio: registering 22 gpios
[ 0.231175] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[ 0.243813] rt2880_gpio 10000660.gpio: registering 6 gpios
[ 0.254743] rt2880_gpio 10000660.gpio: registering 6 irq handlers
[ 0.269650] clocksource: Switched to clocksource MIPS
[ 0.282310] NET: Registered protocol family 2
[ 0.292681] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.306569] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.319153] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.332014] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.343633] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.356663] NET: Registered protocol family 1
[ 0.366307] rt-timer 10000100.timer: maximum frequency is 3662Hz
[ 0.380376] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.434949] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.446598] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.472484] io scheduler noop registered
[ 0.480306] io scheduler deadline registered (default)
[ 0.490937] ralink-usb-phy usbphy: invalid resource
[ 0.504524] gpio-export gpio-export: 8 gpio(s) exported
[ 0.515549] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.530408] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13, base_baud = 2500000) is a Palmchip BK-3103
[ 0.550829] console [ttyS1] disabled
[ 0.557872] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.577700] console [ttyS1] enabled
[ 0.577700] console [ttyS1] enabled
[ 0.591482] bootconsole [early0] disabled
[ 0.591482] bootconsole [early0] disabled
[ 0.621236] spi spi0.0: force spi mode3
[ 0.629783] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.639404] 4 ofpart partitions found on MTD device spi0.0
[ 0.650403] Creating 4 MTD partitions on "spi0.0":
[ 0.660019] 0x000000000000-0x000000020000 : "uboot"
[ 0.673366] 0x000000020000-0x000000030000 : "uboot-env"
[ 0.687780] 0x000000030000-0x000000040000 : "factory"
[ 0.701872] 0x000000040000-0x000000800000 : "firmware"
[ 0.755169] 2 uimage-fw partitions found on MTD device firmware
[ 0.767112] 0x000000040000-0x0000001680eb : "kernel"
[ 0.780443] 0x0000001680eb-0x000000800000 : "rootfs"
[ 0.794245] mtd: device 5 (rootfs) set to be root filesystem
[ 0.805847] 1 squashfs-split partitions found on MTD device rootfs
[ 0.818267] 0x0000003b0000-0x000000800000 : "rootfs_data"
[ 0.833160] spi-rt2880 10000b00.spi: cs1 >= max 1
[ 0.842697] spi_master spi0: spi_device register error /palmbus@10000000/spi@b00/spidev@1
[ 0.859070] spi_master spi0: Failed to create SPI device for /palmbus@10000000/spi@b00/spidev@1
[ 0.882616] rt3050-esw 10110000.esw: link changed 0x00
[ 0.895949] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.913621] rt2880_wdt 10000120.watchdog: Initialized
[ 0.926474] NET: Registered protocol family 10
[ 0.943872] NET: Registered protocol family 17
[ 0.953119] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.978399] 8021q: 802.1Q VLAN Support v1.8
[ 1.005776] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.021972] Freeing unused kernel memory: 188K (80371000 - 803a0000)
[ 3.395701] init: Console is alive
[ 3.403288] init: - watchdog -
[ 5.739618] usbcore: registered new interface driver usbfs
[ 5.750968] usbcore: registered new interface driver hub
[ 5.761930] usbcore: registered new device driver usb
[ 5.783637] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.799330] ehci-platform: EHCI generic platform driver
[ 5.820553] phy phy-usbphy.0: remote usb device wakeup disabled
[ 5.832438] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 5.841428] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.853043] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.869164] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.899730] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.914649] hub 1-0:1.0: USB hub found
[ 5.923227] hub 1-0:1.0: 1 port detected
[ 5.936969] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.952264] ohci-platform: OHCI generic platform driver
[ 5.963327] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.977072] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.993152] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 6.065868] hub 2-0:1.0: USB hub found
[ 6.074469] hub 2-0:1.0: 1 port detected
[ 6.094918] init: - preinit -
[ 6.919856] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 7.596583] rt3050-esw 10110000.esw: link changed 0x00
[ 7.887296] random: procd urandom read with 13 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 9.286239] rt3050-esw 10110000.esw: link changed 0x10
[ 11.276552] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 11.339999] procd: - early -
[ 11.346034] procd: - watchdog -
[ 12.445068] procd: - ubus -
[ 12.603056] procd: - init -
Please press Enter to activate this console.
[ 15.019545] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 15.061140] i2c /dev entries driver
[ 15.073295] i2c-ralink 10000900.i2c: clock 100KHz, re-start support
[ 15.107944] Linux video capture interface: v2.00
[ 15.141426] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796
[ 15.156651] Backport generated by backports.git backports-20160216-0-ge3c56e4
[ 15.188800] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 15.221316] nf_conntrack version 0.5.0 (448 buckets, 1792 max)
[ 15.326368] xt_time: kernel timezone is -0000
[ 15.454946] PPP generic driver version 2.4.2
[ 15.469264] NET: Registered protocol family 24
[ 15.512335] uvcvideo: Found UVC 1.00 device USB 2.0 PC Camera (058f:3861)
[ 15.531800] input: USB 2.0 PC Camera as /devices/platform/101c0000.ehci/usb1/1-1/1-1:1.0/input/input0
[ 15.550761] usbcore: registered new interface driver uvcvideo
[ 15.562384] USB Video Class driver (1.1.1)
[ 15.612056] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[ 15.627679] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[ 22.978747] rt3050-esw 10110000.esw: link changed 0x00
[ 24.666797] rt3050-esw 10110000.esw: link changed 0x10
[ 28.355066] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 28.423059] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 28.436394] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 33.263453] device eth0.1 entered promiscuous mode
[ 33.273507] device eth0 entered promiscuous mode
[ 33.363668] br-lan: port 1(eth0.1) entered forwarding state
[ 33.375028] br-lan: port 1(eth0.1) entered forwarding state
[ 35.369683] br-lan: port 1(eth0.1) entered forwarding state
[ 58.309842] done.
[ 58.313760] jffs2: notice: (993) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
BusyBox v1.24.2 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
DESIGNATED DRIVER (Bleeding Edge, 49927)
-----------------------------------------------------
* 2 oz. Orange Juice Combine all juices in a
* 2 oz. Pineapple Juice tall glass filled with
* 2 oz. Grapefruit Juice ice, stir well.
* 2 oz. Cranberry Juice
-----------------------------------------------------
root@OpenWrt:/# cat /proc/cpuinfo
system type : Ralink RT5350 id:1 rev:3
machine : WC0030A
processor : 0
cpu model : MIPS 24KEc V4.12
BogoMIPS : 239.61
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
root@OpenWrt:/# [ 77.499728] random: nonblocking pool is initialized
uname -a
Linux OpenWrt 4.4.14 #1 Sun Aug 28 12:09:57 UTC 2016 mips GNU/Linux
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.5M 2.5M 0 100% /rom
tmpfs 14.0M 56.0K 13.9M 0% /tmp
tmpfs 14.0M 52.0K 14.0M 0% /tmp/root
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock6 4.3M 276.0K 4.0M 6% /overlay
overlayfs:/overlay 4.3M 276.0K 4.0M 6% /
root@OpenWrt:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment