|
|
Опции темы | Поиск в этой теме | Опции просмотра |
05.04.2017, 22:51 | #1 | |
Junior Member
Регистрация: 04.04.2017
Адрес: Vrn
Сообщений: 4
Вес репутации: 0 |
Вопросы по замене Flash ROM в NETGEAR WNR612v2 на бОльшую и компилляции прошивки OpenWRT
Всех категорически приветствую
Наткнулся я тут на форуме на вот эту инструкцию и решил сделать по аналогии себе... Делал по методу "на программаторе", сдул MXIC MX25L3206E, собрал прошивку в HEX-редакторе с переносом ART-раздела в конец, прошил в MXIC MX25L6406E и всё заработало... правда абсолютно также как и раньше. Как было свободно 100КБ своболной памяти, так и осталось, дополнительные 4МБ не увиделись... Хотя судя по выводу dmesg флешка определилась: Код:
[ 0.750000] m25p80 spi0.0: found mx25l6405d, expected m25p80 [ 0.760000] m25p80 spi0.0: mx25l6405d (8192 Kbytes) только кучка файлов и как из них собрать прошивку не знаю. Если с собирать не маньяча с пакетами - всё компилится и в роутере работает. Но так не интересно В той же инструкции сказано: Цитата:
Код:
$(eval $(call SingleProfile,Netgear,64kraw,REALWNR612V2,wnr612v2,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,WNR612V2,"",)) $(eval $(call SingleProfile,Netgear,64kraw,N150R,n150r,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,N150R,"",)) Собственно, вопрос: я в линухах не очень, что где ещё и как правильно подправить чтобы либо прошивки начали собираться восьмиметровые, либо просто стало больше памяти для установки доп. пакетов? Полный лог загрузки от подачи питанияU-Boot 1.1.4 (WNR612 400 MHz, V0.4, Dec 21 2009 - 15:38:14)
DRAM: sri #### TAP VALUE 1 = 8, 2 = 9 32 MB Top of RAM usable for U-Boot at: 82000000 Reserving 269k for U-Boot at: 81fbc000 Reserving 192k for malloc() at: 81f8c000 Reserving 44 Bytes for Board Info at: 81f8bfd4 Reserving 36 Bytes for Global Data at: 81f8bfb0 Reserving 128k for boot params() at: 81f6bfb0 Stack Pointer at: 81f6bf98 Now running in RAM - U-Boot at: 81fbc000 id read 0x100000ff flash size 4194304, sector count = 64 Flash: 4 MB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: ag7240_enet_initialize... No valid address in Flash. Using fixed address No valid address in Flash. Using fixed address : cfg1 0xf cfg2 0x7014 eth0: 00:03:7f:09:0b:ad eth0 up : cfg1 0xf cfg2 0x7214 eth1: 00:03:7f:09:0b:ad ATHRS26: resetting s26 ATHRS26: s26 reset done eth1 up eth0, eth1 Hit any key to stop autoboot: 0 Trying eth1 eth1 link down FAIL Trying eth0 eth0 link down FAIL Client starts...[Listening] for ADVERTISE...TTT Retry count exceeded; boot the image as usual nmrp server is stopped or failed ! Verifying Checksum ... OK ### SQUASHFS loading 'image/uImage' to 0x80800000 ### SQUASHFS load complete: 1163676 bytes loaded to 0x80800000 ## Booting image at 80800000 ... Image Name: MIPS OpenWrt Linux-3.18.45 Created: 2017-04-05 16:23:28 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1163612 Bytes = 1.1 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 33554432 Starting kernel ... [ 0.000000] Linux version 3.18.45 (mmds@mmds-pc) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #2 Wed Apr 5 19:23:13 MSK 2017 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Atheros AR7240 rev 2 [ 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 0x00000000-0x01ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x01ffffff] [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 [ 0.000000] Kernel command line: board=WNR612V2 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,3712k(firmware),64k(art)ro rootfstype=squashfs,jffs2 noinitrd [ 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=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 28392K/32768K available (2523K kernel code, 143K rwdata, 540K rodata, 240K init, 188K bss, 4376K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz [ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.100000] NET: Registered protocol family 16 [ 0.100000] MIPS: machine is NETGEAR WNR612 V2 [ 0.550000] registering PCI controller with io_map_base unset [ 0.560000] PCI host bridge to bus 0000:00 [ 0.570000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] [ 0.570000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.580000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.580000] pci 0000:00:00.0: fixup device configuration [ 0.590000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit] [ 0.590000] pci 0000:00:00.0: using irq 40 for pin 1 [ 0.600000] Switched to clocksource MIPS [ 0.600000] NET: Registered protocol family 2 [ 0.610000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.610000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.620000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.630000] TCP: reno registered [ 0.630000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.640000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.640000] NET: Registered protocol family 1 [ 0.650000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.660000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.670000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.680000] msgmni has been set to 55 [ 0.700000] io scheduler noop registered [ 0.700000] io scheduler deadline registered (default) [ 0.710000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.710000] console [ttyS0] disabled [ 0.740000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12500000) is a 16550A [ 0.750000] console [ttyS0] enabled [ 0.750000] console [ttyS0] enabled [ 0.750000] bootconsole [early0] disabled [ 0.750000] bootconsole [early0] disabled [ 0.760000] m25p80 spi0.0: found mx25l6405d, expected m25p80 [ 0.770000] m25p80 spi0.0: mx25l6405d (8192 Kbytes) [ 0.780000] 4 cmdlinepart partitions found on MTD device spi0.0 [ 0.780000] Creating 4 MTD partitions on "spi0.0": [ 0.790000] 0x000000000000-0x000000040000 : "u-boot" [ 0.790000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.800000] 0x000000050000-0x0000003f0000 : "firmware" [ 0.810000] 2 netgear-fw partitions found on MTD device firmware [ 0.820000] 0x000000050000-0x00000016d440 : "kernel" [ 0.820000] 0x00000016d440-0x0000003f0000 : "rootfs" [ 0.830000] mtd: device 4 (rootfs) set to be root filesystem [ 0.830000] 1 squashfs-split partitions found on MTD device rootfs [ 0.840000] 0x0000003a0000-0x0000003f0000 : "rootfs_data" [ 0.850000] 0x0000003f0000-0x000000400000 : "art" [ 0.880000] libphy: ag71xx_mdio: probed [ 1.470000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY] [ 1.480000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII [ 2.070000] ag71xx-mdio.0: Found an AR7240/AR9330 built-in switch [ 2.110000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 2.120000] TCP: cubic registered [ 2.120000] NET: Registered protocol family 17 [ 2.120000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 2.140000] 8021q: 802.1Q VLAN Support v1.8 [ 2.150000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 2.160000] Freeing unused kernel memory: 240K (80384000 - 803c0000) [ 3.440000] init: Console is alive [ 3.440000] init: - watchdog - [ 4.930000] usbcore: registered new interface driver usbfs [ 4.940000] usbcore: registered new interface driver hub [ 4.940000] usbcore: registered new device driver usb [ 4.950000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.960000] ehci-platform: EHCI generic platform driver [ 4.970000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.980000] ohci-platform: OHCI generic platform driver [ 5.460000] init: - preinit - [ 6.200000] random: procd urandom read with 9 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.370000] jffs2: notice: (321) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 9.390000] mount_root: switching to jffs2 overlay [ 9.450000] procd: - early - [ 9.450000] procd: - watchdog - [ 10.140000] procd: - ubus - [ 11.160000] procd: - init - Please press Enter to activate this console. [ 12.140000] NET: Registered protocol family 10 [ 12.150000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 12.180000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68 [ 12.180000] Backport generated by backports.git backports-20151218-0-g2f58d9d [ 12.190000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 12.210000] nf_conntrack version 0.5.0 (447 buckets, 1788 max) [ 12.260000] xt_time: kernel timezone is -0000 [ 12.380000] PPP generic driver version 2.4.2 [ 12.390000] NET: Registered protocol family 24 [ 12.440000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002) [ 12.450000] ath: phy0: Ignoring endianness difference in EEPROM magic bytes. [ 12.460000] ath: phy0: Enable LNA combining [ 12.460000] ath: phy0: eeprom contains invalid mac address: ff:ff:ff:ff:ff:ff [ 12.470000] ath: phy0: random mac address will be used: d6:b0:57:1e:9e:9e [ 12.500000] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xb0000000, irq=40 [ 20.700000] device eth1 entered promiscuous mode [ 20.730000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 20.760000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 81.200000] random: nonblocking pool is initialized BusyBox v1.23.2 (2017-04-05 18:32:52 MSK) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- CHAOS CALMER (Chaos Calmer, r49389) ----------------------------------------------------- * 1 1/2 oz Gin Shake with a glassful * 1/4 oz Triple Sec of broken ice and pour * 3/4 oz Lime Juice unstrained into a goblet. * 1 1/2 oz Orange Juice * 1 tsp. Grenadine Syrup ----------------------------------------------------- root@OpenWrt:/# df -h Filesystem Size Used Available Use% Mounted on rootfs 320.0K 228.0K 92.0K 71% / /dev/root 2.3M 2.3M 0 100% /rom tmpfs 14.0M 52.0K 13.9M 0% /tmp /dev/mtdblock5 320.0K 228.0K 92.0K 71% /overlay overlayfs:/overlay 320.0K 228.0K 92.0K 71% / tmpfs 512.0K 0 512.0K 0% /dev root@OpenWrt:/# ar7240> printenv bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART) bootcmd=fsload 80800000 image/uImage;bootm 80800000 bootdelay=2 baudrate=115200 ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee ipaddr=192.168.1.10 serverip=192.168.1.27 clearenv=erase 0x9f040000 +0x10000 ddr_ext_mode_value=0x0 magic_number=0x0 stdin=serial stdout=serial stderr=serial ethact=eth0 Environment size: 459/65532 bytes ar7240> [свернуть] |
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1) | |
|
|