Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Last active August 13, 2021 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakueikozo/8980a23f5b2f552c0cec986c2ee03b71 to your computer and use it in GitHub Desktop.
Save bakueikozo/8980a23f5b2f552c0cec986c2ee03b71 to your computer and use it in GitHub Desktop.
U-Boot 1.1.3 (May 8 2013 - 21:16:08)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb4000
spi_wait_nsec: 42
spi device id: 1c 30 16 1c 30 (30161c30)
find flash: EN25Q32B
raspi_read: from:30000 len:1000
.*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 4.0.1.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: SPI Flash
Date:May 8 2013 Time:21:16:08
============================================
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.
0
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
. Image Name: Linux Kernel Image
Created: 2016-06-07 8:42:39 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3505215 Bytes = 3.3 MB
Load Address: 80000000
Entry Point: 80467000
raspi_read: from:50040 len:357c3f
...................................................... Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80467000) ...
## Giving linux memsize in MB, 32
Starting kernel ...
LINUX started...
THIS IS ASIC
Linux version 2.6.21 (ttajima@localhost.localdomain) (gcc version 3.4.2) #1336 Tue Jun 7 17:42:33 JST 2016
The CPU frequency set to 360 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists. Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
cause = d0808014, status = 11000000
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 0015f900(1440000)
CPU frequency 360.00 MHz
Using 180.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 25744k/32768k available (3588k kernel code, 7024k reserved, 915k data, 2112k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
Time: MIPS clocksource has been installed.
deice id : 1c 30 16 1c 30 (30161c30)
EN25Q32B(1c 30161c30) (4096 Kbytes)
mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 5 MTD partitions on "raspi":
0x00000000-0x00400000 : "ALL"
0x00000000-0x00030000 : "Bootloader"
0x00030000-0x00040000 : "Config"
0x00040000-0x00050000 : "Factory"
0x00050000-0x01000000 : "Kernel"
mtd: partition "Kernel" extends beyond the end of device "raspi" -- size truncated to 0x3b0000
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
detected lzma initramfs
detected lzma initramfs
initramfs: LZMA lc=3,lp=0,pb=2,dictSize=1048576,origSize=8017920
LZMA initramfs by Ming-Ching Tiew <mctiew@yahoo.com>...........................................................................................................................fuse init (API version 7.8)
io scheduler noop registered (default)
Ralink gpio driver initialized
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
chardev success
Serial: 8250/16550 driver $Revision: 1.9 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
rdm_major = 253
Ralink APSoC Ethernet Driver Initilization. v2.1 256 rx/tx descriptors allocated, mtu = 1500!
MAC_ADRH -- : 0x00000602
MAC_ADRL -- : 0x3500577a
PROC INIT OK!
PPP generic driver version 2.4.2
PPP BSD Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V0.17
PPTP driver version 0.8.1
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
=== pAd = c0000000, size = 805120 ===
<-- RTMPAllocAdapterBlock, Status=0
block2mtd: version $Revision: 1.1.1.1 $
netem: version 1.2
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 2112k freed
init started: BusyBox v1.12.1 (2016-05-24 17:35:55 JST)
startAlgorithmics/MIPS FPU Emulator v1.5
ing pid 615, tty '': '/etc_ro/rcS'
devpts: called with bogus options
mount: mounting none on /proc/bus/usb failed: No such file or directory
gpio 21~00 = 0x4402
/tmp/gpio.txt = 1
switch reg read offset=80, value=0
WAN not ready.
ralink_gpioralink_gpio_led_xxx = 0
starting pid 626, tty '/dev/ttyS1': '/bin/sh'
BusyBox v1.12.1 (2016-05-24 17:35:55 JST) built-in shell (ash)
Enter 'help' for a list of bled=9, on=1, off=4000, blinks,=1, reset=1, time=4000
uilt-in commands.
# ralink_gpio: sending a SIGUSR1 to process 625
The PBC button is pressed but WPS is disabled now.
internet.sh
Password for 'admin' changed
rmmod: ralink_wdt: No such file or directory
rmmod: cls: No such file or directory
rmmod: hw_nat: No such file or directory
rmmod: raeth: No such file or directory
insmod: bridge.ko: module not found
insmod: mii.ko: module not found
insmod: raeth.ko: module not found
##### disable 1st wireless interface #####
rmmod: rt2860v2_ap_net: No such file or directory
rmmod: rt2860v2_ap: No such file or directory
rmmod: rt2860v2_ap_util: No such file or directory
insmod: rt2860v2_ap_util.ko: module not found
insmod: rt2860v2_ap.ko: module not found
insmod: rt2860v2_ap_net.ko: module not found
rmmod: nf_nat_pptp: No such file or directory
rmmod: nf_conntrack_pptp: No such file or directory
rmmod: nf_nat_proto_gre: No such file or directory
rmmod: nf_conntrack_proto_gre: No such file or directory
RX DESC a04ec000 size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Break instruction in kernel code[#1]:
Cpu 0
$ 0 : 00000000 00000000 00002000 00000000
$ 4 : 803e0000 00000008 00000000 80450000
$ 8 : ffffffd0 00000000 00000000 80452350
$12 : 80696908 ffffffff 00200200 00100100
$16 : 00000001 00000e03 803e3454 c0000000
$20 : ffffffff c0000000 803c5724 00008914
$24 : 00000002 81009540
$28 : 8119a000 8119bb30 805e9000 8019c6a4
Hi : 00002000
Lo : ffffffff
epc : 8019c714 RTMPSetProfileParameters+0x25c/0x5578 Not tainted
ra : 8019c6a4 RTMPSetProfileParameters+0x1ec/0x5578
Status: 1100fc03 KERNEL EXL IE
Cause : 10800024
PrId : 0001964c
Modules linked in:
Process ifconfig (pid: 809, threadinfo=8119a000, task=806ae000)
Stack : 00000000 00000000 8064b370 00000001 00000001 00000000 8119bbe8 00000000
81e266c0 00000001 00000000 00000000 00000001 8119bbe0 8119bc38 80058a1c
8064b408 81e26704 81e266c0 8119bc38 8119bb90 80056240 00000000 8119bc08
00000e03 000001fd 805e9e03 00000000 8119bbe8 81e266c0 81e266e0 c0000000
ffffffff 80450000 803c5724 00008914 7fa15b20 8007a22c 800794c0 8119bc08
...
Call Trace:
[<8019c714>] RTMPSetProfileParameters+0x25c/0x5578
[<801e90cc>] RTMPReadParametersHook+0xec/0x180
[<8017f2a4>] rt28xx_init+0x304/0xe3c
[<801ea2b4>] rt28xx_open+0xa4/0x130
[<801909d4>] RTMP_COM_IoctlHandle+0x360/0x864
[<801e9b6c>] MainVirtualIF_open+0x78/0xe0
[<80289a24>] dev_open+0x68/0xd8
[<8028b93c>] dev_change_flags+0x74/0x16c
[<802f47c8>] devinet_ioctl+0x2fc/0x78c
[<802f60d0>] inet_ioctl+0xc8/0xfc
[<8027d198>] sock_ioctl+0x220/0x264
[<80088320>] do_ioctl+0x30/0x78
[<80088680>] vfs_ioctl+0x318/0x340
[<800886f8>] sys_ioctl+0x50/0x88
[<800148c4>] stack_done+0x20/0x3c
Code: 92a351c2 14600002 0043001a <0007000d> 00001012 28420200 10400005 3c168045 3c04803e
=============================
Added by wales from Planex 2014/2/27
=============================
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.
You choosed 4
0
raspi_read: from:40028 len:6
.
4: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (May 8 2013 - 21:16:08)
RT5350 # printenv
bootcmd=tftp
bootdelay=5
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=10.10.10.123
serverip=10.10.10.3
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) panic=1
flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
kernel_addr=BFC40000
u-boot=u-boot.bin
load=tftp 8A100000 $(u-boot)
u_b=protect off 1:0-1;era 1:0-1;cp.b 8A100000 BC400000 $(filesize)
loadfs=tftp 8A100000 root.cramfs
u_fs=era bc540000 bc83ffff;cp.b 8A100000 BC540000 $(filesize)
test_tftp=tftp 8A100000 root.cramfs;run test_tftp
stdin=serial
stdout=serial
stderr=serial
ethact=Eth0 (10/100-M)
Environment size: 765/4092 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment