Skip to content

Instantly share code, notes, and snippets.

@ptpt52
Created August 4, 2020 08:09
Show Gist options
  • Select an option

  • Save ptpt52/215f7ffd7276e46578aed638dd18c07c to your computer and use it in GitHub Desktop.

Select an option

Save ptpt52/215f7ffd7276e46578aed638dd18c07c to your computer and use it in GitHub Desktop.
Bootloader by tuber V1.0
SoC:MediaTek MT7628
DRAM: DDR2 Memory-Testing...131072K OK
128 MB
relocate_code Pointer at: 87f60000
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Oct 6 2018 Time:17:46:09
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =128 Mbytes
RESET MT7628 PHY!!!!!!
Press the RESET button and enter the recovery mode
Check upgrade
netboot_common, argc= 3
NetTxPacket = 0x87FB3EC0
KSEG1ADDR(NetTxPacket) = 0xA7FB3EC0
NetLoop,call eth_halt !
NetLoop,call eth_init !
Waitting for RX_DMA_BUSY status Start... done
TFTP from server 169.254.1.100; our IP address is 169.254.1.1
Filename 'test.bin'.
TIMEOUT_COUNT=6,Load address: 0x80100000
Loading: T T T T T T
Retry count exceeded; return
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.
6: Entr Web failsafe mode.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
3: System Boot system code via Flash.
## Booting image at bc050000 ...
Image Name: neutral
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1619417 Bytes = 1.5 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128
Starting kernel ...
[ 0.000000] Linux version 4.14.143 (wisiyilink@debian) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0-06f28a8)) #0 Mon Sep 16 00:47:05 2019
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is ps101
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000002
[ 0.000000] Readback ErrCtl register=00000002
[ 0.000000] Memory: 124568K/131072K available (3785K kernel code, 170K rwdata, 876K rodata, 216K init, 200K bss, 6504K 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] intc: using register map from devicetree
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015376] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087586] pid_max: default: 32768 minimum: 301
[ 0.096916] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.109874] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.128877] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.148258] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.160351] pinctrl core: initialized pinctrl subsystem
[ 0.171600] NET: Registered protocol family 16
[ 0.289797] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[ 0.450799] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[ 0.463942] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.493389] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.504627] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.515781] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.531054] clocksource: Switched to clocksource MIPS
[ 0.542088] NET: Registered protocol family 2
[ 0.551421] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.565123] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.577647] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.590345] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.601815] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.614411] NET: Registered protocol family 1
[ 0.626142] Crashlog allocated RAM at address 0x3f00000
[ 0.637895] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.655830] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.667273] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.695956] io scheduler noop registered
[ 0.703629] io scheduler deadline registered (default)
[ 0.714653] gpio-export gpio_export: 1 gpio(s) exported
[ 0.725156] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.738803] console [ttyS0] disabled
[ 0.745834] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.763664] console [ttyS0] enabled
[ 0.763664] console [ttyS0] enabled
[ 0.777389] bootconsole [early0] disabled
[ 0.777389] bootconsole [early0] disabled
[ 0.793870] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.812681] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.836952] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.846391] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.858995] Creating 4 MTD partitions on "spi0.0":
[ 0.868498] 0x000000000000-0x000000030000 : "u-boot"
[ 0.879182] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.890561] 0x000000040000-0x000000050000 : "factory"
[ 0.901495] 0x000000050000-0x000001000000 : "firmware"
[ 0.915156] 2 uimage-fw partitions found on MTD device firmware
[ 0.926947] Creating 2 MTD partitions on "firmware":
[ 0.936796] 0x000000000000-0x00000018b619 : "kernel"
[ 0.947550] 0x00000018b619-0x000000fb0000 : "rootfs"
[ 0.958183] mtd: device 5 (rootfs) set to be root filesystem
[ 0.970840] 1 squashfs-split partitions found on MTD device rootfs
[ 0.983154] 0x000000900000-0x000000fb0000 : "rootfs_data"
[ 0.995413] libphy: Fixed MDIO Bus: probed
[ 1.014246] rt3050-esw 10110000.esw: link changed 0x00
[ 1.026012] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.044075] NET: Registered protocol family 10
[ 1.056739] Segment Routing with IPv6
[ 1.064161] NET: Registered protocol family 17
[ 1.073028] 8021q: 802.1Q VLAN Support v1.8
[ 1.091003] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.106216] Freeing unused kernel memory: 216K
[ 1.115051] This architecture does not have kernel memory protection.
[ 2.011654] init: Console is alive
[ 2.018641] init: - watchdog -
[ 2.421067] random: fast init done
[ 4.300648] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.483248] usbcore: registered new interface driver usbfs
[ 4.494283] usbcore: registered new interface driver hub
[ 4.504956] usbcore: registered new device driver usb
[ 4.521432] exFAT: Version 1.2.9
[ 4.560881] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.583008] SCSI subsystem initialized
[ 4.595813] ehci-platform: EHCI generic platform driver
[ 4.616533] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 4.629829] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 4.640197] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 4.651631] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 4.667444] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 4.701106] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 4.714528] hub 1-0:1.0: USB hub found
[ 4.722384] hub 1-0:1.0: 1 port detected
[ 4.733725] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.747706] ohci-platform: OHCI generic platform driver
[ 4.758390] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 4.771917] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 4.787705] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 4.865986] hub 2-0:1.0: USB hub found
[ 4.873900] hub 2-0:1.0: 1 port detected
[ 4.884750] uhci_hcd: USB Universal Host Controller Interface driver
[ 4.904510] usbcore: registered new interface driver usb-storage
[ 4.917633] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.942502] init: - preinit -
[ 6.530713] rt3050-esw 10110000.esw: link changed 0x00
[ 6.725706] random: procd: uninitialized urandom read (4 bytes read)
[ 6.942027] jffs2: notice: (386) jffs2_build_xattr_subsystem: complete building xattr subsystem, 67 of xdatum (2 unchecked, 65 orphan) and 230 of xref (57 dead, 149 orpha.
[ 6.975503] mount_root: switching to jffs2 overlay
[ 7.032517] overlayfs: upper fs does not support tmpfile.
[ 7.051651] urandom-seed: Seeding with /etc/urandom.seed
[ 7.187516] procd: - early -
[ 7.193421] procd: - watchdog -
[ 7.801769] procd: - watchdog -
[ 7.808331] procd: - ubus -
[ 7.972743] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.055492] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.068712] random: ubusd: uninitialized urandom read (4 bytes read)
[ 8.082485] procd: - init -
[ 8.957354] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.054659] urngd: v1.0.0 started.
[ 9.114165] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 9.165182] tun: Universal TUN/TAP device driver, 1.6
[ 9.198630] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.252257] i2c /dev entries driver
[ 9.276047] rt2880-pinmux pinctrl: pin io4 already requested by pinctrl; cannot claim for 10000900.i2c
[ 9.294565] rt2880-pinmux pinctrl: pin-4 (10000900.i2c) status -22
[ 9.306821] rt2880-pinmux pinctrl: could not request pin 4 (io4) from group i2c on device rt2880-pinmux
[ 9.325606] i2c-mt7621 10000900.i2c: Error applying setting, reverse things back
[ 9.340279] i2c-mt7621: probe of 10000900.i2c failed with error -22
[ 9.435839] usbcore: registered new interface driver cdc_wdm
[ 9.457118] random: crng init done
[ 9.463897] random: 6 urandom warning(s) missed due to ratelimiting
[ 9.477894] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[ 9.492955] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[ 9.509525] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.522263] usbcore: registered new interface driver ipheth
[ 9.545151] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 9.622161] usbcore: registered new interface driver r8152
[ 9.636435] usbcore: registered new interface driver rtl8150
[ 9.651861] usbcore: registered new interface driver ums-alauda
[ 9.665969] usbcore: registered new interface driver ums-cypress
[ 9.680321] usbcore: registered new interface driver ums-datafab
[ 9.694504] usbcore: registered new interface driver ums-freecom
[ 9.708829] usbcore: registered new interface driver ums-isd200
[ 9.723073] usbcore: registered new interface driver ums-jumpshot
[ 9.737435] usbcore: registered new interface driver ums-karma
[ 9.751934] usbcore: registered new interface driver ums-sddr09
[ 9.766152] usbcore: registered new interface driver ums-sddr55
[ 9.780552] usbcore: registered new interface driver ums-usbat
[ 9.795313] usbcore: registered new interface driver usblp
[ 9.817476] usbcore: registered new interface driver usbserial
[ 9.829243] usbcore: registered new interface driver usbserial_generic
[ 9.842312] usbserial: USB Serial support registered for generic
[ 9.876139] xt_time: kernel timezone is -0000
[ 9.888384] usbcore: registered new interface driver asix
[ 9.902298] usbcore: registered new interface driver ax88179_178a
[ 9.917389] usbcore: registered new interface driver cdc_ether
[ 10.015205] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 11.043191] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 11.055001] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 11.081077] mt76_wmac 10300000.wmac: firmware init done
[ 11.284790] PPP generic driver version 2.4.2
[ 11.301149] NET: Registered protocol family 24
[ 11.323799] usbcore: registered new interface driver qmi_wwan
[ 11.353683] usbcore: registered new interface driver rndis_host
[ 11.382197] usbcore: registered new interface driver sr9700
[ 11.452928] usbcore: registered new interface driver option
[ 11.464143] usbserial: USB Serial support registered for GSM modem (1-port)
[ 11.483374] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 23.062264] br-lan: port 1(eth0.1) entered blocking state
[ 23.073035] br-lan: port 1(eth0.1) entered disabled state
[ 23.084258] device eth0.1 entered promiscuous mode
[ 23.093804] device eth0 entered promiscuous mode
[ 23.172014] br-lan: port 1(eth0.1) entered blocking state
[ 23.182774] br-lan: port 1(eth0.1) entered forwarding state
[ 23.194068] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 23.296819] br-wan: port 1(eth0.2) entered blocking state
[ 23.307589] br-wan: port 1(eth0.2) entered disabled state
[ 23.318655] device eth0.2 entered promiscuous mode
[ 23.449373] br-wan: port 1(eth0.2) entered blocking state
[ 23.460133] br-wan: port 1(eth0.2) entered forwarding state
[ 24.092998] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 24.418552] ehci-platform 101c0000.ehci: remove, state 1
[ 24.429176] usb usb1: USB disconnect, device number 1
[ 24.575761] ehci-platform 101c0000.ehci: USB bus 1 deregistered
[ 26.880431] ehci-platform: EHCI generic platform driver
[ 26.891157] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 26.902610] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 26.918423] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 27.101157] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 27.139965] hub 1-0:1.0: USB hub found
[ 27.175571] hub 1-0:1.0: 1 port detected
[ 27.431960] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 31.626018] IPv6: ADDRCONF(NETDEV_UP): wifi0: link is not ready
ignore dhcp...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment