27.08.2018, 22:19 | #71 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
|
30.08.2018, 22:16 | #72 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
Так. Может вместе опять подумаем? некий Uboot залит. По составу команд и приклашению он отличается от запоротого. Залит образ lede/Openwrt (пробовал разные, результат один).
В конце загрузки вижу следующее: Код:
*** U-Boot EMMC *** 1. System Load Linux to SDRAM via TFTP. 2. System Load Linux Kernel then write to Flash via TFTP. 3. Boot system code via Flash. 4. System Load Boot Loader then write to Flash via TFTP. 5. System Load Linux Kernel then write to Flash via Serial. 6. System Load Boot Loader then write to Flash via Serial. U-Boot console Press UP/DOWN to move or Press 1~9,a~b to choose, ENTER to select mmc0 is current device mmc0 operation dev_num = 0 MMC read: dev # 0, block # 2560, count 1 ... 1 blocks read: OK [do_read_image_blks]Bad Magic Number = 0x27051956 mmc0 operation serious check Bad Data CRC bootm flag=0, states=70f ## Booting kernel from Legacy Image at 84000000 ... Image Name: MIPS OpenWrt Linux-4.9.44 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4225472 Bytes = 4 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! fatls mmc 0:1 - листинг корня SD Последний раз редактировалось Tohin; 30.08.2018 в 23:08. |
31.08.2018, 18:11 | #73 |
Senior Member
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152 |
Если воспользоваться п1 - залить образ в RAM? потом сделать sysupgrade уже из openwrt
|
31.08.2018, 19:35 | #74 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
Да, вчерась такая же мысля пришла. Но после sysupgrade картина не изменилась: Bad Data CRC и с точностью до символа.
Не уверен, что sysupgrade вообще что-то пишет. Вот бы понять что делают команды mmc write 84000000 1000 6000 (вроде берет чтото из ram по адресу 84000000 и пишет на mmc, интересно что такое 1000 и 6000) emmc pconf 0x48 (где по факту этот байт храниться? как его проверить/отредактировать без утилиты emmc?) Последний раз редактировалось Tohin; 31.08.2018 в 19:39. |
31.08.2018, 22:57 | #75 |
Senior Member
Регистрация: 22.10.2015
Адрес: Там где сосны и песок
Сообщений: 1,534
Вес репутации: 1601 |
Посмотреть mmc -help т.д. и т.п. :
https://manpages.debian.org/testing/.../mmc.1.en.html
__________________
Читаю ваши мысли по аватару ... |
01.09.2018, 10:03 | #76 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
Попробовал загрузить образ 18.06.1 через RAM:
Код:
setenv ipaddr 192.168.2.150 setenv netmask 255.255.255.0 setenv serverip 192.168.2.2 tftpboot openwrt-18.06.1-mediatek-mt7623-7623n-bananapi-bpi-r2-initramfs-kernel.bin bootm logКод:
Enter mt7623_ethifsys_init() [mt7623_pinmux_set]start [mt7623_pinmux_set]end Waitting for RX_DMA_BUSY status Start... done Enter setup_internal_gsw() MT7530 Reset Completed!! change HW-TRAP to 0x1015edf Release MT7623 RXC Reset set LAN/WAN LLLLW Using mtk_eth device TFTP from server 192.168.2.2; our IP address is 192.168.2.150 Filename 'openwrt-18.06.1-mediatet7623-7623n-bananapi-bpi-r2-initramfs-kernel.bi n'. Load address: 0x84000000 Loading: T TFTP error: 'File not found' (1) Not retrying... MT7623> tftpboot openwrt-18.06.1-mediatek-mt7623-7623n-bananapi-bpi-r2-initramfs -kernel.bin Using mtk_eth device TFTP from server 192.168.2.2; our IP address is 192.168.2.150 Filename 'openwrt-18.06.1-mediatek-mt7623-7623n-bananapi-bpi-r2-initramfs-kernel .bin'. Load address: 0x84000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################ 501 KiB/s done Bytes transferred = 4235554 (40a122 hex) get filesize 0x40a122 MT7623> bootm bootm flag=0, states=70f ## Booting kernel from Legacy Image at 84000000 ... Image Name: ARM OpenWrt Linux-4.14.63 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4235490 Bytes = 4 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.63 ([email protected]) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7141-e4d0ee5af5)) #0 SMP PREEMPT Wed Aug 15 20:42:39 2018 [ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Bananapi BPI-R2 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] random: get_random_bytes called from 0xc07008e4 with crng_init=0 [ 0.000000] percpu: Embedded 15 pages/cpu @ef7a9000 s29964 r8192 d23284 u61440 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608 [ 0.000000] Kernel command line: earlyprintk console=ttyS0,115200 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 1025444K/1048576K available (5120K kernel code, 164K rwdata, 760K rodata, 7168K init, 278K bss, 23132K reserved, 0K cma-reserved, 262144K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0600000 (6112 kB) [ 0.000000] .init : 0xc0700000 - 0xc0e00000 (7168 kB) [ 0.000000] .data : 0xc0e00000 - 0xc0e29300 ( 165 kB) [ 0.000000] .bss : 0xc0e2ce70 - 0xc0e727f4 ( 279 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns [ 0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns [ 0.000017] Switching to timer-based delay loop, resolution 76ns [ 0.000146] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns [ 0.000162] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns [ 0.000361] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000) [ 0.000377] pid_max: default: 32768 minimum: 301 [ 0.000480] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000495] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000911] CPU: Testing write buffer coherency: ok [ 0.040019] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.060016] Hierarchical SRCU implementation. [ 0.100072] smp: Bringing up secondary CPUs ... [ 0.310476] smp: Brought up 1 node, 4 CPUs [ 0.310489] SMP: Total of 4 processors activated (104.00 BogoMIPS). [ 0.310496] CPU: All CPU(s) started in SVC mode. [ 0.315638] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3 [ 0.315855] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.315876] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.316023] pinctrl core: initialized pinctrl subsystem [ 0.316715] NET: Registered protocol family 16 [ 0.316932] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.317539] No ATAGs? [ 0.377175] usbcore: registered new interface driver usbfs [ 0.377226] usbcore: registered new interface driver hub [ 0.377282] usbcore: registered new device driver usb [ 0.378384] clocksource: Switched to clocksource arch_sys_counter [ 0.379305] NET: Registered protocol family 2 [ 0.379950] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.380023] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.380136] TCP: Hash tables configured (established 8192 bind 8192) [ 0.380228] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.380275] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.380523] NET: Registered protocol family 1 [ 0.469122] No memory allocated for crashlog [ 0.469310] workingset: timestamp_bits=30 max_order=18 bucket_order=0 [ 0.471902] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.471913] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.475802] bounce: pool size: 64 pages [ 0.475824] io scheduler noop registered [ 0.475832] io scheduler deadline registered (default) [ 0.480411] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.482464] console [ttyS0] disabled [ 0.503197] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 194, base_baud = 1625000) is a ST16650V2 [ 0.971543] console [ttyS0] enabled [ 0.975555] mtk_rng 1020f000.rng: registered RNG driver [ 0.975695] random: fast init done [ 0.975883] random: crng init done [ 0.988248] mt6323-regulator mt6323-regulator: Chip ID = 0x2023 [ 1.003221] libphy: Fixed MDIO Bus: probed [ 1.030531] mtk_soc_eth 1b100000.ethernet: chip id = 7623 [ 1.036082] libphy: mdio: probed [ 1.039319] drivers/net/ethernet/mediatek/mtk_eth_soc.c:mtk_mdio_init[412]0 ee82e400 [ 1.047024] mtk_soc_eth 1b100000.ethernet: generated random MAC address 1a:f1:9f:d0:cb:9d [ 1.061320] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 1.072009] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf08e0000, irq 204 [ 1.080458] mtk_soc_eth 1b100000.ethernet: generated random MAC address d6:a6:bb:26:37:3c [ 1.094479] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY] [ 1.105195] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xf08e0000, irq 204 [ 1.114600] xhci-mtk 1a1c0000.usb: xHCI Host Controller [ 1.119898] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1 [ 1.130323] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010 [ 1.138706] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000 [ 1.144929] hub 1-0:1.0: USB hub found [ 1.148700] hub 1-0:1.0: 1 port detected [ 1.152894] xhci-mtk 1a1c0000.usb: xHCI Host Controller [ 1.158086] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2 [ 1.165470] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed [ 1.171845] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.180326] hub 2-0:1.0: USB hub found [ 1.184075] hub 2-0:1.0: 1 port detected [ 1.188690] xhci-mtk 1a240000.usb: xHCI Host Controller [ 1.193894] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3 [ 1.204269] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010 [ 1.212621] xhci-mtk 1a240000.usb: irq 203, io mem 0x1a240000 [ 1.218799] hub 3-0:1.0: USB hub found [ 1.222544] hub 3-0:1.0: 1 port detected [ 1.226720] xhci-mtk 1a240000.usb: xHCI Host Controller [ 1.231935] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4 [ 1.239292] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed [ 1.245652] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.254098] hub 4-0:1.0: USB hub found [ 1.257846] hub 4-0:1.0: 1 port detected [ 1.262256] i2c /dev entries driver [ 1.267056] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values [ 1.276582] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0) [ 1.284659] cpu cpu0: dummy supplies not allowed for exclusive requests [ 1.292252] sdhci: Secure Digital Host Controller Interface driver [ 1.298409] sdhci: Copyright(c) Pierre Ossman [ 1.358962] mtk-msdc 11240000.mmc: Got CD GPIO [ 1.413721] mmc0: new high speed MMC card at address 0001 [ 1.419639] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.425416] mmcblk0: mmc0:0001 8WPD3R 7.28 GiB [ 1.430172] mmcblk0boot0: mmc0:0001 8WPD3R partition 1 4.00 MiB [ 1.436285] mmcblk0boot1: mmc0:0001 8WPD3R partition 2 4.00 MiB [ 1.444297] NET: Registered protocol family 10 [ 1.449660] Segment Routing with IPv6 [ 1.449710] NET: Registered protocol family 17 [ 1.449740] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 1.450917] 8021q: 802.1Q VLAN Support v1.8 [ 1.450967] ThumbEE CPU extension supported. [ 1.450976] Registering SWP/SWPB emulation handler [ 1.499713] mmcblk0rpmb: mmc0:0001 8WPD3R partition 3 512 KiB [ 1.506192] DSA: switch 0 0 parsed [ 1.509641] DSA: tree 0 parsed [ 1.512775] mmcblk0: p2 p3 [ 1.535649] mmc1: host does not support reading read-only switch, assuming write-enable [ 1.545985] mmc1: new high speed SDHC card at address 59b4 [ 1.551991] mmcblk1: mmc1:59b4 USDU1 15.1 GiB [ 1.557482] mmcblk1: p1 [ 1.561056] libphy: dsa slave smi: probed [ 1.565280] Generic PHY dsa-0.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:00, irq=POLL) [ 1.575856] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=POLL) [ 1.586327] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=POLL) [ 1.596777] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=POLL) [ 1.607278] Generic PHY dsa-0.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:04, irq=POLL) [ 1.632840] hctosys: unable to open rtc device (rtc0) [ 1.637963] clk: Not disabling unused clocks [ 1.642347] vusb: disabling [ 1.645122] vmc: disabling [ 1.647809] vgp1: disabling [ 1.650618] vcamaf: disabling [ 1.659385] Freeing unused kernel memory: 7168K [ 1.670026] init: Console is alive [ 1.674127] init: - watchdog - [ 1.682387] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 1.691868] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 1.708828] init: - preinit - [ 1.734223] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 1.740064] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 1.747581] IPv6: ADDRCONF(NETDEV_UP): lan1: link is not ready 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 [ 2.798755] mt7530 3.switch lan1: Link is Down [ 4.805730] procd: - early - [ 4.808720] procd: - watchdog - [ 5.455266] procd: - watchdog - [ 5.459172] procd: - ubus - [ 5.512458] procd: - init - Please press Enter to activate this console. [ 5.574182] kmodloader: loading kernel modules from /etc/modules.d/* [ 5.581946] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 5.960130] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180 [ 5.968070] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d [ 5.975462] ip_tables: (C) 2000-2006 Netfilter Core Team [ 6.300167] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 6.470716] xt_time: kernel timezone is -0000 [ 6.679226] PPP generic driver version 2.4.2 [ 6.683951] NET: Registered protocol family 24 [ 6.689316] kmodloader: done loading kernel modules from /etc/modules.d/* [ 9.940135] br-lan: port 1(lan0) entered blocking state [ 9.945340] br-lan: port 1(lan0) entered disabled state [ 9.951080] device lan0 entered promiscuous mode [ 9.955681] device eth0 entered promiscuous mode [ 9.962160] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 9.973494] br-lan: port 2(lan1) entered blocking state [ 9.978774] br-lan: port 2(lan1) entered disabled state [ 9.985498] device lan1 entered promiscuous mode [ 9.993134] br-lan: port 3(lan2) entered blocking state [ 9.998374] br-lan: port 3(lan2) entered disabled state [ 10.005064] device lan2 entered promiscuous mode [ 10.012938] br-lan: port 4(lan3) entered blocking state [ 10.018180] br-lan: port 4(lan3) entered disabled state [ 10.024783] device lan3 entered promiscuous mode [ 10.036683] IPv6: ADDRCONF(NETDEV_UP): wan: link is not ready [ 10.958885] mt7530 3.switch lan0: Link is Down [ 11.039209] mt7530 3.switch lan3: Link is Down [ 11.039376] mt7530 3.switch wan: Link is Down [ 11.039648] mt7530 3.switch lan2: Link is Down [ 13.119409] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready [ 13.125781] mt7530 3.switch wan: Link is Up - 100Mbps/Full - flow control rx/tx [ 13.148405] NOHZ: local_softirq_pending 80 [ 15.258394] NOHZ: local_softirq_pending 282 [ 19.038411] NOHZ: local_softirq_pending 80 [ 19.128415] NOHZ: local_softirq_pending 80 BusyBox v1.28.3 () built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 18.06.1, r7258-5eb055306f ----------------------------------------------------- === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- root@OpenWrt:/# [свернуть] Скачиваем и прошиваем образПриходится поднимать свой веб-сервер, поскольку ftp и scp отсутствут, а имеющийся wget не прожевывает https.
Код:
root@OpenWrt:/# wget http://192.168.2.2/BPI-R2/mtk-bpi-r2-EMMC.img Downloading 'http://192.168.2.2/BPI-R2/mtk-bpi-r2-EMMC.img' Connecting to 192.168.2.2:80 Writing to 'mtk-bpi-r2-EMMC.img' [ 433.335893] NOHZ: local_softirq_pending 08 [ 433.339967] NOHZ: local_softirq_pending 08 [ 433.344029] NOHZ: local_softirq_pending 08 [ 433.348089] NOHZ: local_softirq_pending 08 [ 433.352150] NOHZ: local_softirq_pending 08 [ 433.356210] NOHZ: local_softirq_pending 08 mtk-bpi-r2-EMMC.img 100% |*******************************| 97M 0:00:00 ETA Download completed (102498308 bytes) root@OpenWrt:/# dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0 200192+1 records in 200192+1 records out root@OpenWrt:/# echo 0 > /sys/block/mmcblk0boot0/force_ro root@OpenWrt:/# dd if=mtk-bpi-r2-EMMC.img of=/dev/mmcblk0boot0 bs=1M count=1 1+0 records in 1+0 records out [свернуть] Вся эпопея упирается в ограничение 35000 символов в одном сообщении. Последний раз редактировалось Tohin; 01.09.2018 в 10:38. Причина: Пишем дальше... |
01.09.2018, 10:38 | #77 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
Ребутимся.
Начинаем грузить образ.... И.... Барабанная дробь! Preloader - сработал! Uboot - загрузился!! Kernel найден и опознан, грузим систему!!! ОБЛОМ!!! Лог загрузкиКод:
Device APC domain init setup: bootloader load uboot ,the address of uboot is 81E00000 [PART]partition name UBOOT [PART]partition start block 0x200 [PART]partition size 0x80000 [PART]partition blks 0x400 [PART]partition flags 0x0 [PART]partition name 0x8 [bean] part->startblk(0x200) bdev->blksz(0x200) part->part_id(8) hdr(0xFFB50000) [BlkDev.c 101 ]partition block size 0x200 ,blks:0x1E1F800 [BlkDev.c 101 ]partition block erase size 0x200 [PART] load "UBOOT" from 0x0000000000050000 (dev) to 0x81E00000 (mem) [SUCCESS] [PART] load speed: 6103KB/s, 300000 bytes, 48ms [BT_SD_PG] device info 0x8590 0x8A00 0xCB01 0x102 0:dram_rank_size:80000000 [PLFM] md_type[0] = 0 [PLFM] md_type[1] = 0 [PLFM] boot reason: 0 [PLFM] boot mode: 0 [PLFM] META COM0: 0 [PLFM] <0xFFB7CC10>: 0x0 [PLFM] boot time: 5570ms [PLFM] DDR reserve mode: enable = 0, success = 0 [BLDR] jump to 0x81E00000 [BLDR] <0x81E00000>=0xEA00000F [BLDR] <0x81E00004>=0xE59FF014 U-Boot 2014.04-rc1 (Sep 05 2017 - 12:43:27) g_nr_bank = 1. g_total_rank_size = 0x80000000 DRAM: 2 GiB WARNING: Caches not enabled MMC: emmc: 0, sdcard: 1 dev_num = 1 ***size=16384, offset=1048576, blk_start=2048, blk_cnt=32 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: Eth0 Uip activated Hit any key to stop autoboot: 0 dev_num = 0 mmc0 is current device dev_num = 0 MMC read: dev # 0, block # 4096, count 22528 ... 22528 blocks read: OK bootm flag=0, states=70f ## Booting kernel from Legacy Image at 84000000 ... Image Name: MIPS OpenWrt Linux-4.9.44 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2792868 Bytes = 2.7 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.44 (root@bld2) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4773-2cb61a8) ) #0 SMP PREEMPT Tue Jun 26 11:00:25 2018 [ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: Bananapi BPI-R2 [ 0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000 [ 0.000000] OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] percpu: Embedded 14 pages/cpu @eefaa000 s25356 r8192 d23796 u57344 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 522495 [ 0.000000] Kernel command line: earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:256k(mbr)ro,512k(uboot)ro,256k(config)ro,256k(factory)ro,32M(kernel),32M(recovery),1024M(rootfs),2048M(usrdata),-(bmtpool) rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 2070072K/2096124K available (5395K kernel code, 264K rwdata, 1776K rodata, 228K init, 655K bss, 26052K reserved, 0K cma-reserved, 1309692K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc054d05c (5397 kB) [ 0.000000] .init : 0xc0735000 - 0xc076e000 ( 228 kB) [ 0.000000] .data : 0xc076e000 - 0xc07b0380 ( 265 kB) [ 0.000000] .bss : 0xc07b0380 - 0xc0854108 ( 656 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 13.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns [ 0.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns [ 0.000016] Switching to timer-based delay loop, resolution 76ns [ 0.000138] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns [ 0.000153] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns [ 0.000358] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000) [ 0.000372] pid_max: default: 32768 minimum: 301 [ 0.000455] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000466] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000945] CPU: Testing write buffer coherency: ok [ 0.001195] Setting up static identity map for 0x80008200 - 0x80008258 [ 0.360510] Brought up 4 CPUs [ 0.360525] SMP: Total of 4 processors activated (104.00 BogoMIPS). [ 0.360532] CPU: All CPU(s) started in SVC mode. [ 0.368613] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3 [ 0.368916] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.368936] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.369063] pinctrl core: initialized pinctrl subsystem [ 0.369922] NET: Registered protocol family 16 [ 0.370167] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.371317] No ATAGs? [ 0.432228] SCSI subsystem initialized [ 0.432513] usbcore: registered new interface driver usbfs [ 0.432576] usbcore: registered new interface driver hub [ 0.432663] usbcore: registered new device driver usb [ 0.432745] pps_core: LinuxPPS API ver. 1 registered [ 0.432753] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.432775] PTP clock support registered [ 0.434128] ------------[ cut here ]------------ [ 0.434151] WARNING: CPU: 0 PID: 1 at net/wireless/reg.c:516 regulatory_init+0x80/0x124 [ 0.434158] db.txt is empty, you should update it... [ 0.434164] Modules linked in: [ 0.434179] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.44 #0 [ 0.434186] Hardware name: Mediatek Cortex-A7 (Device Tree) [ 0.434214] [<c0015df4>] (unwind_backtrace) from [<c0012298>] (show_stack+0x10/0x14) [ 0.434234] [<c0012298>] (show_stack) from [<c01a2678>] (dump_stack+0x78/0x98) [ 0.434251] [<c01a2678>] (dump_stack) from [<c001d968>] (__warn+0xbc/0xec) [ 0.434266] [<c001d968>] (__warn) from [<c001d9cc>] (warn_slowpath_fmt+0x34/0x44) [ 0.434281] [<c001d9cc>] (warn_slowpath_fmt) from [<c0756414>] (regulatory_init+0x80/0x124) [ 0.434295] [<c0756414>] (regulatory_init) from [<c075631c>] (cfg80211_init+0x54/0xcc) [ 0.434309] [<c075631c>] (cfg80211_init) from [<c0009798>] (do_one_initcall+0xb8/0x174) [ 0.434324] [<c0009798>] (do_one_initcall) from [<c0735d88>] (kernel_init_freeable+0x120/0x1e4) [ 0.434341] [<c0735d88>] (kernel_init_freeable) from [<c05477d0>] (kernel_init+0x8/0xf4) [ 0.434357] [<c05477d0>] (kernel_init) from [<c000eeb8>] (ret_from_fork+0x14/0x3c) [ 0.434373] ---[ end trace 8db2bc2956c8c932 ]--- [ 0.434831] clocksource: Switched to clocksource arch_sys_counter [ 0.436059] NET: Registered protocol family 2 [ 0.436698] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.436777] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.436889] TCP: Hash tables configured (established 8192 bind 8192) [ 0.436949] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.436994] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.437157] NET: Registered protocol family 1 [ 0.438410] No memory allocated for crashlog [ 0.438638] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.443578] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.443590] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.454492] bounce: pool size: 64 pages [ 0.454509] io scheduler noop registered [ 0.454518] io scheduler deadline registered (default) [ 0.458596] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.459764] console [ttyS0] disabled [ 0.479999] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 195, base_baud = 1625000) is a ST16650V2 [ 1.101016] console [ttyS0] enabled [ 1.105039] mtk_rng 1020f000.rng: registered RNG driver [ 1.110556] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success [ 1.118371] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0 [ 1.125205] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=eeb42e40 [ 1.132464] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=eeb42ec0 [ 1.141290] mt6323-regulator mt6323-regulator: Chip ID = 0x2023 [ 1.157835] libphy: Fixed MDIO Bus: probed [ 1.162129] 2.mt7530 supply core not found, using dummy regulator [ 1.168277] 2.mt7530 supply io not found, using dummy regulator [ 1.174307] mt7530: probe of 2.mt7530 failed with error -22 [ 1.180241] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI [ 1.186310] e100: Copyright(c) 1999-2006 Intel Corporation [ 1.191801] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 1.198841] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 1.204605] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 1.210419] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 1.216397] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k [ 1.223300] igb: Copyright (c) 2007-2014 Intel Corporation. [ 1.228906] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k [ 1.236707] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 1.242623] i40e: Intel(R) Ethernet Connection XL710 Network Driver - version 1.6.16-k [ 1.250493] i40e: Copyright (c) 2013 - 2014 Intel Corporation. [ 1.256463] ixgb: Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2-NAPI [ 1.263539] ixgb: Copyright (c) 1999-2008 Intel Corporation. [ 1.269235] Intel(R) Ethernet Switch Host Interface Driver - version 0.21.2-k [ 1.276326] Copyright (c) 2013 - 2016 Intel Corporation. [ 1.304431] mtk_soc_eth 1b100000.ethernet: chip id = 7623 [ 1.310012] libphy: mdio: probed [ 1.313241] mtk_soc_eth 1b100000.ethernet: generated random MAC address a6:63:b6:c8:39:fc [ 1.321762] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 1.332639] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf0920000, irq 211 [ 1.341052] mtk_soc_eth 1b100000.ethernet: generated random MAC address 06:fd:95:0e:3d:2c [ 1.349505] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY] [ 1.360264] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xf0920000, irq 211 [ 1.368806] usbcore: registered new interface driver rtl8150 [ 1.374456] usbcore: registered new interface driver r8152 [ 1.380726] xhci-mtk 1a1c0000.usb: xHCI Host Controller [ 1.385982] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1 [ 1.393561] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010 [ 1.401923] xhci-mtk 1a1c0000.usb: irq 209, io mem 0x1a1c0000 [ 1.408295] hub 1-0:1.0: USB hub found [ 1.412046] hub 1-0:1.0: 1 port detected [ 1.416307] xhci-mtk 1a1c0000.usb: xHCI Host Controller [ 1.421505] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2 [ 1.428955] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.437559] hub 2-0:1.0: USB hub found [ 1.441302] hub 2-0:1.0: 1 port detected [ 1.445977] xhci-mtk 1a240000.usb: xHCI Host Controller [ 1.451177] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3 [ 1.458781] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010 [ 1.467131] xhci-mtk 1a240000.usb: irq 210, io mem 0x1a240000 [ 1.473425] hub 3-0:1.0: USB hub found [ 1.477192] hub 3-0:1.0: 1 port detected [ 1.481430] xhci-mtk 1a240000.usb: xHCI Host Controller [ 1.486650] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4 [ 1.494053] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.502674] hub 4-0:1.0: USB hub found [ 1.506439] hub 4-0:1.0: 1 port detected [ 1.510879] usbcore: registered new interface driver usb-storage [ 1.516951] usbcore: registered new interface driver usbserial [ 1.522773] usbcore: registered new interface driver usbserial_generic [ 1.529417] usbserial: USB Serial support registered for generic [ 1.535440] usbcore: registered new interface driver opticon [ 1.541086] usbserial: USB Serial support registered for opticon [ 1.547102] usbcore: registered new interface driver option [ 1.552671] usbserial: USB Serial support registered for GSM modem (1-port) [ 1.559877] i2c /dev entries driver [ 1.564018] mediatek-mt7623-pinctrl 1000b000.pinctrl: invalid function 1 on pin 57 . [ 1.571739] i2c-mt65xx: probe of 11008000.i2c failed with error -22 [ 1.578105] IR NEC protocol handler initialized [ 1.582597] IR RC5(x/sz) protocol handler initialized [ 1.587730] IR RC6 protocol handler initialized [ 1.592221] IR JVC protocol handler initialized [ 1.596728] IR Sony protocol handler initialized [ 1.601305] IR SANYO protocol handler initialized [ 1.605980] IR Sharp protocol handler initialized [ 1.610642] IR XMP protocol handler initialized [ 1.615396] Registered IR keymap rc-empty [ 1.619673] input: mtk_cir as /devices/platform/10013000.cir/rc/rc0/input0 [ 1.626637] rc rc0: mtk_cir as /devices/platform/10013000.cir/rc/rc0 [ 1.633248] mtk_cir 10013000.cir: Initialized MT7623 IR driver, sample period = 46us [ 1.641240] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values [ 1.650444] MTK_WDT_NONRST_REG(0) [ 1.654295] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0) [ 1.663398] cpu cpu0: dummy supplies not allowed [ 1.669082] sdhci: Secure Digital Host Controller Interface driver [ 1.675263] sdhci: Copyright(c) Pierre Ossman [ 1.735380] mtk-msdc 11240000.mmc: Got CD GPIO [ 1.789553] mmc0: new high speed MMC card at address 0001 [ 1.795415] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.801378] mmcblk0: mmc0:0001 8WPD3R 7.28 GiB [ 1.806272] mmcblk0boot0: mmc0:0001 8WPD3R partition 1 4.00 MiB [ 1.812517] mmcblk0boot1: mmc0:0001 8WPD3R partition 2 4.00 MiB [ 1.819794] mmcblk0rpmb: mmc0:0001 8WPD3R partition 3 512 KiB [ 1.828488] alg: aead: encryption failed on test 1 for gcm-aes-mtk: ret=22 [ 1.839551] random: fast init done [ 1.850417] NET: Registered protocol family 10 [ 1.855743] NET: Registered protocol family 17 [ 1.860310] 8021q: 802.1Q VLAN Support v1.8 [ 1.862011] mmc1: host does not support reading read-only switch, assuming write-enable [ 1.864291] mmc1: new high speed SDHC card at address 59b4 [ 1.864698] mmcblk1: mmc1:59b4 USDU1 15.1 GiB [ 1.865656] mmcblk1: p1 [ 1.884925] ThumbEE CPU extension supported. [ 1.889166] Registering SWP/SWPB emulation handler [ 2.006497] mtk-pcie 1a140000.pcie-controller: Port0 link down [ 2.042750] mtk-pcie 1a140000.pcie-controller: PCI host bridge to bus 0000:00 [ 2.049854] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff]) [ 2.059269] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] [ 2.066100] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.071884] PCI: bus0: Fast back to back transfers disabled [ 2.077430] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 2.085557] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid [ 2.092562] pci 0000:01:00.0: reg 0x14: initial BAR value 0x00000000 invalid [ 2.099583] pci 0000:01:00.0: reg 0x18: initial BAR value 0x00000000 invalid [ 2.106598] pci 0000:01:00.0: reg 0x1c: initial BAR value 0x00000000 invalid [ 2.113602] pci 0000:01:00.0: reg 0x20: initial BAR value 0x00000000 invalid [ 2.120862] PCI: bus1: Fast back to back transfers disabled [ 2.126566] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff] [ 2.133301] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref] [ 2.140481] pci 0000:00:01.0: BAR 1: assigned [mem 0x60200000-0x6020ffff] [ 2.147229] pci 0000:00:01.0: BAR 7: assigned [io 0x1000-0x1fff] [ 2.153277] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref] [ 2.160453] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff] [ 2.167201] pci 0000:01:00.0: BAR 4: assigned [io 0x1000-0x100f] [ 2.173249] pci 0000:01:00.0: BAR 0: assigned [io 0x1010-0x1017] [ 2.179307] pci 0000:01:00.0: BAR 2: assigned [io 0x1018-0x101f] [ 2.185365] pci 0000:01:00.0: BAR 1: assigned [io 0x1020-0x1023] [ 2.191412] pci 0000:01:00.0: BAR 3: assigned [io 0x1024-0x1027] [ 2.197470] pci 0000:00:01.0: PCI bridge to [bus 01] [ 2.202394] pci 0000:00:01.0: bridge window [io 0x1000-0x1fff] [ 2.208450] pci 0000:00:01.0: bridge window [mem 0x60000000-0x600fffff] [ 2.215195] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff pref] [ 2.222439] pcieport 0000:00:01.0: enabling device (0140 -> 0143) [ 2.228640] pcieport 0000:00:01.0: Signaling PME through PCIe PME interrupt [ 2.235558] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt [ 2.242388] ahci 0000:01:00.0: enabling device (0140 -> 0143) [ 2.248187] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled [ 2.254786] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode [ 2.262744] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs [ 2.272245] scsi host0: ahci [ 2.285503] scsi host1: ahci [ 2.288567] ata1: SATA max UDMA/133 abar m512@0x60000000 port 0x60000100 irq 219 [ 2.295931] ata2: SATA max UDMA/133 abar m512@0x60000000 port 0x60000180 irq 219 [ 2.303650] DSA: switch 0 0 parsed [ 2.307043] DSA: tree 0 parsed [ 2.328175] libphy: dsa slave smi: probed [ 2.332907] Generic PHY dsa-0.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:00, irq=-1) [ 2.343260] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=-1) [ 2.353583] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=-1) [ 2.363905] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=-1) [ 2.374247] Generic PHY dsa-0.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:04, irq=-1) [ 2.394862] mtk_soc_eth 1b100000.ethernet eth1: rx pause enabled, tx pause enabled [ 2.402382] mtk_soc_eth 1b100000.ethernet eth0: rx pause enabled, tx pause enabled [ 2.626284] ata1: SATA link down (SStatus 0 SControl 300) [ 2.966271] ata2: SATA link down (SStatus 0 SControl 300) [ 2.981789] 9 cmdlinepart partitions found on MTD device eMMC [ 2.987512] Creating 9 MTD partitions on "eMMC": [ 2.992092] 0x000000000000-0x000000040000 : "mbr" [ 2.997533] 0x000000040000-0x0000000c0000 : "uboot" [ 3.003042] 0x0000000c0000-0x000000100000 : "config" [ 3.008676] 0x000000100000-0x000000140000 : "factory" [ 3.024322] 0x000000140000-0x000002140000 : "kernel" [ 3.039898] 0x000002140000-0x000004140000 : "recovery" [ 3.045654] 0x000004140000-0x000044140000 : "rootfs" [ 3.051211] mtd: device 6 (rootfs) set to be root filesystem [ 3.057415] mtdsplit: no squashfs found in "rootfs" [ 3.062267] 0x000044140000-0x0000c4140000 : "usrdata" [ 3.077970] 0x0000c4140000-0x0001d2000000 : "bmtpool" [ 3.093634] block2mtd: mtd0: [eMMC] erase_size = 64KiB [65536] [ 3.099892] mediatek-mt7623-pinctrl 1000b000.pinctrl: pin_config_group_set op failed for group 256 [ 3.108822] gpio-keys gpio_keys: Error applying setting, reverse things back [ 3.115842] gpio-keys: probe of gpio_keys failed with error -22 [ 3.121758] hctosys: unable to open rtc device (rtc0) [ 3.126991] clk: Not disabling unused clocks [ 3.131255] vusb: disabling [ 3.134029] vmc: disabling [ 3.136735] vgp1: disabling [ 3.139530] vcamaf: disabling [ 3.224667] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0x7368 instead [ 3.234113] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x1672 instead [ 3.243528] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0x1cc9 instead [ 3.252942] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0x00dd instead [ 3.262354] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0x0004 instead [ 3.271767] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x06c0 instead [ 3.281180] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x0004 instead [ 3.290593] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x1b3d instead [ 3.300006] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0028: 0xb8aa instead [ 3.309419] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0030: 0xb8a2 instead [ 3.318830] jffs2: Further such events for this erase block will not be printed [ 3.326584] jffs2: Empty flash at 0x000c0038 ends at 0x000c0040 [ 3.334771] jffs2: Old JFFS2 bitmask found at 0x000c5444 [ 3.340056] jffs2: You cannot use older JFFS2 filesystems with newer kernels [свернуть] Что-то я утомился... |
01.09.2018, 15:14 | #78 | ||||
Senior Member
Регистрация: 22.10.2015
Адрес: Там где сосны и песок
Сообщений: 1,534
Вес репутации: 1601 |
Цитата:
Цитата:
Собственно в "ворнингах" что-то есть Цитата:
https://www.google.com/search?client...utf-8&oe=utf-8 https://www.google.com/search?client...utf-8&oe=utf-8 И вишенка на торте: [ 3.340056] jffs2: You cannot use older JFFS2 filesystems with newer kernels https://www.google.com/search?client....0.hhGyZmfSq-g Цитата:
__________________
Читаю ваши мысли по аватару ... Последний раз редактировалось sunny; 01.09.2018 в 15:34. |
||||
01.09.2018, 19:32 | #79 | |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
ворнинги я гуглил, и даже пробовал читать. есть 2 мысли:
Отсюда ПерваяЦитата:
[свернуть] Вторая, отсюда: when dealing with NAND flashes one has to skip bad eraseblocks and write only in NAND page size chunks Also please, do not forget to erase your flash before flashing the image Из неосиленного: у меня emmc 8WPD3R он же KLM8G1WEPD-B031, какой у него page size? Но как это применить на практике - мой мозг инструкций не дает. UPD: Появилась мысль - сдампить всю флэху и разбирать на компе по байтам. но 8GB это неприятно. Последний раз редактировалось Tohin; 01.09.2018 в 21:11. |
|
01.09.2018, 22:05 | #80 |
Moderator
Регистрация: 20.07.2014
Адрес: МСК
Сообщений: 991
Вес репутации: 1031 |
так. а ларчик просто открывался. Вот так пакеты можно ставить в RAM. По идее это должно мне помочь выстрадать систему на emmc. Но я пока еще не понимаю как.
Развернуть для просмотраroot@OpenWrt:/# mount -t tmpfs -o size=200M,mode=777 tmpfs /overlay/
root@OpenWrt:/# opkg update root@OpenWrt:/# opkg install fdisk nano Configuring terminfo. Configuring libncurses. Configuring nano. Configuring librt. Configuring libuuid. Configuring libblkid. Configuring libfdisk. Configuring libsmartcols. Configuring fdisk. [свернуть] root@OpenWrt:/# fdisk /dev/mmcblk0 Device does not contain a recognized partition table. UPD: залез hex'ом в образы. Что в SD, что в EMMC образы заканчиваются одинаково: 61с0000: DE AD C0 DE То есть как и завещал хабр... Проверяем, что там на плате записано: root@OpenWrt:/# hexdump -Cs 0x61C0000 /dev/mmcblk0 |more 061c0000 de ad c0 de 00 00 00 00 00 00 00 00 00 00 00 00 |................| Да вот он родимый... Непонятно. неоправдалосьА где там таблица разделов должна лежать? UPD: Кажется нашел таблицу разделов: 000001d0 00 00 83 00 00 00 00 0a 02 00 00 00 20 00 00 00 |............ ...| 000001e0 00 00 83 00 00 00 00 0a 22 00 00 00 40 00 00 00 |........"...@...| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| надо думать как это записать на нужные места emmc, т.к. у меня там нули.. Скачал hexedit, дописал таблицу разделов в образ, залил на плату = без изменений jffs недоволен. А вот fdisk GPT видит: Код HTML:
Disk /dev/mmcblk0: 7.3 GiB, 7818182656 bytes, 15269888 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xffffffff Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 4294967295 8589934589 4294967295 2T ff BBT /dev/mmcblk0p2 133632 2230783 2097152 1G 83 Linux /dev/mmcblk0p3 2230784 6425087 4194304 2G 83 Linux Partition table entries are not in disk order. [свернуть] Последний раз редактировалось Tohin; 02.09.2018 в 15:37. |
Метки |
bpi-r2, mediatek, mtk 7623 |
Здесь присутствуют: 9 (пользователей: 0 , гостей: 9) | |
|
|