![]() |
![]() |
#181 |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]()
Отсюда скачен. И с патчами как то не приходилось иметь дело. Собирать из исходников тачка нужна мощная, а она занята покамесь, да и инет, а он у меня эпизодически
![]() P.S. На 703N строка gpio-1 (w1 без физически подключенного датчика имеется, и датчики не причем, 2шт работают нормально на 703N Код:
root@CyberWrt:~# cat /sys/kernel/debug/gpio GPIOs 0-29, ath79: gpio-1 (w1 ) in hi gpio-7 (sda ) in hi gpio-8 (USB power ) out hi gpio-11 (reset ) in lo gpio-27 (tp-link:blue:system ) out lo gpio-29 (scl ) in hi Последний раз редактировалось sakatgg; 24.04.2015 в 00:42. |
![]() |
![]() |
![]() |
#182 | |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]() Цитата:
Прошил ее нормально, но после смены Ip не смог больше зайти на роутер - Ip не получает, попробывал восстановиться через китайскую прогу, вроде как и шьет, но не грузиться роутер Verifying Checksum ... Bad Data CRC, в консоле: Код:
Header Payload scatter function is Disable !! ETH_STATE_ACTIVE!! Using Eth0 (10/100-M) device TFTP from server 192.168.1.55; our IP address is 192.168.1.2 Filename '000c43305048'. TIMEOUT_COUNT=10,Load address: 0x80100000 Loading: * ArpTimeoutCheck T T T T T T T T T T Retry count exceeded; starting again Trying Eth0 (10/100-M) ETH_STATE_ACTIVE!! ArpTimeoutCheck ArpTimeoutCheck Using Eth0 (10/100-M) device TFTP from server 192.168.1.55; our IP address is 192.168.1.2 Filename '000c43305048'. TIMEOUT_COUNT=10,Load address: 0x80100000 Loading: checksum bad checksum bad ArpTimeoutCheck Got ARP REPLY, set server/gtwy eth addr (xx:xx:xx:xx:xx:xx) Got it T checksum bad T T T ########################################################################## ################################################################################ ################################################################################ ################################################################################ ####### # # # ####################################################################### ################################################################################ ################################################################################ ################################################################################ ########### # # # ##################################################### done Bytes transferred = 722432 (b0600 hex) cnt = 1 type = 8 raspi_erase_write: offs:50000, count:370000 raspi_erase: offs:50000 len:370000 ....................................................... raspi_write: to:50000 len:370000 ....................................................... 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 .Done! raspi_erase_write: offs:20000, count:8 raspi_read: from:20000 len:10000 .raspi_erase: offs:20000 len:10000 . raspi_write: to:20000 len:10000 . raspi_read: from:20000 len:10000 .Done! send over information over U-Boot 1.1.7 (Dec 13 2011 - 13:49:42) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb4000 ****************************** Software System Reset Occurred ****************************** spi_wait_nsec: 42 spi device id: 7f 9d 46 7f 9d (9d467f9d) Warning: un-recognized chip ID, please update bootloader! raspi_read: from:0 len:1000 .*** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 3.6.0.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:Dec 13 2011 Time:13:49:42 ============================================ 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 raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....*************Is_update = 0 plat = 1************** 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: MIPS OpenWrt Linux-3.7.5 Created: 2013-04-11 14:41:22 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 915849 Bytes = 894.4 kB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:df989 .............. Verifying Checksum ... Bad Data CRC U-Boot 1.1.7 (Dec 13 2011 - 13:49:42) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb4000 spi_wait_nsec: 42 spi device id: 7f 9d 46 7f 9d (9d467f9d) Warning: un-recognized chip ID, please update bootloader! raspi_read: from:0 len:1000 .*** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 3.6.0.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:Dec 13 2011 Time:13:49:42 ============================================ 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 raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....*************Is_update = 0 plat = 1************** 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: MIPS OpenWrt Linux-3.7.5 Created: 2013-04-11 14:41:22 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 915849 Bytes = 894.4 kB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:df989 .............. Verifying Checksum ... Bad Data CRC Последний раз редактировалось sakatgg; 24.04.2015 в 15:22. |
|
![]() |
![]() |
![]() |
#183 |
Moderator
Регистрация: 19.10.2013
Сообщений: 479
Вес репутации: 600 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
Не смог зайти после смены ip возможно через мало места во флэш. На ВВ снова что то добавили по дефолту, или пакеты лишние отметил.
Закомментируй в файле target/linux/ramips/files/arch/mips/ralink/rt305x/mach-mpr-a1.c эти строки: Код:
// #define MPR_A1_GPIO_BUTTON_RESET 0 Код:
/* static struct gpio_keys_button mpr_a1_gpio_buttons[] __initdata = { { .desc = "reset", .type = EV_KEY, .code = KEY_RESTART, .debounce_interval = MPR_A1_KEYS_DEBOUNCE_INTERVAL, .gpio = MPR_A1_GPIO_BUTTON_RESET, .active_low = 1, } }; */ И потом: make clean svn update ./scripts/feeds update -a make menuconfig make -j3 V=99 Последний раз редактировалось melsem; 24.04.2015 в 08:39. |
![]() |
![]() |
![]() |
#184 |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]() Код:
мало места во флэш ![]() Последний раз редактировалось sakatgg; 24.04.2015 в 22:38. |
![]() |
![]() |
![]() |
#185 |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]()
Похоже флешке каюк, попробывал через tftpd, подсунул ему разные прошивки (переименовав в 000c43305048), виснет на этом месте
![]() Код:
U-Boot 1.1.7 (Dec 13 2011 - 13:49:42) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb4000 spi_wait_nsec: 42 spi device id: 7f 9d 46 7f 9d (9d467f9d) Warning: un-recognized chip ID, please update bootloader! raspi_read: from:0 len:1000 .*** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 3.6.0.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:Dec 13 2011 Time:13:49:42 ============================================ 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 raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....*************Is_update = 0 plat = 1************** raspi_read: from:40004 len:6 . NetTxPacket = 0x81FE6AC0 KSEG1ADDR(NetTxPacket) = 0xA1FE6AC0 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.55; our IP address is 192.168.1.2 Filename '000c43305048'. TIMEOUT_COUNT=10,Load address: 0x80100000 Loading: * ArpTimeoutCheck T T T Got ARP REPLY, set server/gtwy eth addr (xx:xx:xx:xx:xx:xx) Got it T ################################################################# ################################################################# ################################################################# ########################checksum bad ######################################### ################################################################# ##########################################################checksum bad ####### ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ######################################### done Bytes transferred = 3866624 (3b0000 hex) cnt = -798443182 type = 0 cnt = -798443183 type = 221 cnt = -798443184 type = 186 cnt = -798443185 type = 186 cnt = -798443186 type = 186 cnt = -798443187 type = 186 cnt = -798443188 |
![]() |
![]() |
![]() |
#186 | |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]()
Сдул флешь, забекапил на программаторе, прикол был - прогер не видет ее, думал вообще добил при выпаивании, потом дай думаю ей ручками пробью от другой профиль-> прочиталась, но где firmware вначале нормально, а потом цикличный мусор.
Создал fullflash 16Мб на A5-V11, до секции firmware слил что в родной было, а после вставил свою скомпилированную и на прогере прошил, запаял - все нормально стартануло и загрузилось как положено. Только косячек появился при подключенной консоли - не стартует, Rx отсоединяю - нормально стартует, Rx можно после подсоединить и команды вводить, и кабель другой попробывал - всё равно косяк остался. Флеш MX25L12805D uboot увидел нормально, но прошивка не видит , надо пересобирать на 16Мб. Перепрошивать что-то жимкую уже ![]() Код:
U-Boot 1.1.7 (Dec 13 2011 - 13:49:42) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb4000 spi_wait_nsec: 42 spi device id: c2 20 18 c2 20 (2018c220) find flash: MX25L12805D raspi_read: from:0 len:1000 .*** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 3.6.0.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:Dec 13 2011 Time:13:49:42 ============================================ 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 raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....*************Is_update = 0 plat = 1************** 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 3 0 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 . Image Name: Linux Kernel Image Created: 2015-04-23 12:11:06 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1054904 Bytes = 1 MB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:1018b8 ................. Verifying Checksum ... OK Uncompressing Kernel Image ... P.S. Цитата:
![]() Последний раз редактировалось sakatgg; 25.04.2015 в 11:44. |
|
![]() |
![]() |
![]() |
#187 | |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]()
Собрал прошивку еще CyberWRT на A5-V11 для флешь 16Mb, свободные 12,9Mb
![]() ![]() melsem Цитата:
Прошил для эксперимента BB r42625 собранную из исходников, с уже включенными пакетами kmod-w1, все равно не работают они Последний раз редактировалось sakatgg; 25.04.2015 в 16:22. |
|
![]() |
![]() |
![]() |
#188 |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]()
Немного разобрался, для сравнения на TL-WDR4300 проинсталил пакеты kmod-w1 и запустил (без подключеного датчика), в top - вижу каждые 10 сек процесс [w1_bus_master1] появляется (ведущее устройство). На A5-V11 этот процесс в top отсутствует. Лог ядра:
Gpio0 (reset) от системы отвязан, т.е. экспортируется нормально. Код:
[ 15.580000] Driver for 1-wire Dallas network protocol. [ 15.600000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT [ 15.600000] w1-gpio w1-gpio.0: no of_node; not parsing pinctrl DT [ 15.600000] w1-gpio w1-gpio.0: unable to select pin group [ 15.610000] ------------[ cut here ]------------ [ 15.620000] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x2c/0x54() [ 15.640000] invalid GPIO -2 [ 15.640000] Modules linked in: w1_gpio(+) wire v4l2_common videodev i2c_core w1_gpio_custom eeprom_93cx6 arc4 crypto_blkcipher leds_gpio ohci_hcd ehci_platform ehci_hcd usbcore nls_base usb_common [ 15.680000] CPU: 0 PID: 511 Comm: kmodloader Not tainted 3.10.49 #3 [ 15.690000] Stack : 00000000 00000000 00000000 00000000 8032afbe 00000037 80c645d8 80320000 [ 15.690000] 802789ac 802bab73 000001ff 80323820 80c645d8 80320000 00000000 00000011 [ 15.690000] 00000124 8021b168 00000003 801836c4 80288f1c 80320000 8027a004 81bbdc14 [ 15.690000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.690000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 81bbdba0 [ 15.690000] ... [ 15.760000] Call Trace: [ 15.760000] [<801c077c>] show_stack+0x48/0x70 [ 15.770000] [<8022b98c>] warn_slowpath_common+0x78/0xa8 [ 15.780000] [<8022b9e8>] warn_slowpath_fmt+0x2c/0x38 [ 15.790000] [<800ed294>] gpio_to_desc+0x2c/0x54 [ 15.800000] [<800ecbe4>] gpio_request+0x14/0x2c [ 15.810000] [<80c28220>] 0x80c28220 [ 15.820000] [ 15.820000] ---[ end trace 2f3301a0942f0878 ]--- [ 15.830000] gpiod_request: invalid GPIO [ 15.840000] w1-gpio w1-gpio.0: gpio_request (pin) failed [ 15.850000] w1-gpio: probe of w1-gpio.0 failed with error -22 [ 15.880000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea [ 15.900000] Backport generated by backports.git backports-20140320-37-g5c33da0 Последний раз редактировалось sakatgg; 26.04.2015 в 19:22. |
![]() |
![]() |
![]() |
#189 |
Senior Member
Регистрация: 07.01.2015
Адрес: Baku
Сообщений: 225
Вес репутации: 0 ![]() |
![]()
Кажется и модуль системный диск не хочет форматировать флешку, кто нить юзал этот модуль?
|
![]() |
![]() |
![]() |
#190 | |
Senior Member
Регистрация: 15.07.2014
Сообщений: 939
Вес репутации: 990 ![]() ![]() ![]() ![]() ![]() |
![]() Цитата:
![]() Последний раз редактировалось sakatgg; 27.04.2015 в 00:32. |
|
![]() |
![]() |
![]() |
Здесь присутствуют: 3 (пользователей: 0 , гостей: 3) | |
|
|