Commit 286f2985 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles

Modificacions a mida per al PHICOMM KE 2P (WiP)

Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <[email protected]>
parent 3ef26ac3
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_CROSS_COMPILER_PATH="/D/OpenWrt/GnuBee_PCx_uboot/tools/mips-2012.03/bin"
# CONFIG_BAUDRATE_115200 is not set
CONFIG_BAUDRATE_57600=y
ASIC_BOARD=y
# RT2880_ASIC_BOARD is not set
# RT3350_ASIC_BOARD is not set
# RT3052_ASIC_BOARD is not set
# RT3352_ASIC_BOARD is not set
# RT3883_ASIC_BOARD is not set
# RT5350_ASIC_BOARD is not set
# RT6855A_ASIC_BOARD is not set
# MT7620_ASIC_BOARD is not set
MT7621_ASIC_BOARD=y
# MT7628_ASIC_BOARD is not set
MT7621_MP=y
MT7621_USE_GE1=y
# MT7621_USE_GE2 is not set
# GE_MII_FORCE_100 is not set
# GE_RVMII_FORCE_100 is not set
# GE_MII_AN is not set
GE_RGMII_FORCE_1000=y
# GE_RGMII_AN is not set
MAC_TO_MT7530_MODE=y
GPIOx_RESET_MODE=y
# ON_BOARD_NAND_FLASH_COMPONENT is not set
ON_BOARD_SPI_FLASH_COMPONENT=y
# SPI_FAST_CLOCK is not set
# MT7621_CPU_1400MHZ is not set
# MT7621_CPU_1380MHZ is not set
# MT7621_CPU_1360MHZ is not set
# MT7621_CPU_1340MHZ is not set
# MT7621_CPU_1320MHZ is not set
# MT7621_CPU_1300MHZ is not set
# MT7621_CPU_1280MHZ is not set
# MT7621_CPU_1260MHZ is not set
# MT7621_CPU_1240MHZ is not set
# MT7621_CPU_1220MHZ is not set
# MT7621_CPU_1200MHZ is not set
# MT7621_CPU_1100MHZ is not set
# MT7621_CPU_1000MHZ is not set
# MT7621_CPU_900MHZ is not set
MT7621_CPU_880MHZ=y
# MT7621_CPU_875MHZ is not set
# MT7621_CPU_800MHZ is not set
# MT7621_CPU_500MHZ is not set
# MT7621_CPU_50MHZ is not set
MT7621_CPU_FREQUENCY=370
ON_BOARD_DDR3=y
ON_BOARD_DDR_WIDTH_16=y
ON_BOARD_16BIT_DRAM_BUS=y
# ON_BOARD_512M_DRAM_COMPONENT is not set
ON_BOARD_1024M_DRAM_COMPONENT=y
# ON_BOARD_2048M_DRAM_COMPONENT is not set
# ON_BOARD_4096M_DRAM_COMPONENT is not set
MT7621_DDR_1200MHZ=y
# MT7621_DDR_1066MHZ is not set
# MT7621_DDR_800MHZ is not set
# MT7621_DDR_400MHZ is not set
MT7621_DDR_SPEED=11
PDMA_NEW=y
RX_SCATTER_GATTER_DMA=y
RALINK_DUAL_VPE_FUN=y
RALINK_DUAL_CORE_FUN=y
DDR_ACT_SETTING=y
DEFAULT_DDR3_1024M=y
# DEFAULT_DDR3_2048M is not set
# DEFAULT_DDR3_4096M is not set
# DEFAULT_DDR2_512M is not set
# W9751G6KB_A02_DDR2_1066_512M is not set
# DEFAULT_DDR2_1024M is not set
# W971GG6KB25_DDR2_800_1024M is not set
# W971GG6KB18_DDR2_1066_1024M is not set
DDR_CHIP=DEFAULT_DDR3_1024M
# UBOOT_RAM is not set
UBOOT_ROM=y
# USB_RECOVERY_SUPPORT is not set
LAN_WAN_PARTITION=y
# RALINK_DEMO_BOARD_PVLAN is not set
RALINK_EV_BOARD_PVLAN=y
# EPHY_LINK_UP is not set
TEXT_BASE=0xBFC00000
GPIO_BTN_RESET=3
GPIO_BTN_WPS=-1
GPIO_BTN_WLTOG=-1
GPIO_BTN_ROUTER=-1
GPIO_LED_INVERTED=y
GPIO_LED_ALL=-1
GPIO_LED_INIT1=13
GPIO_LED_INIT2=-1
GPIO_LED_INIT3=-1
GPIO_LED_INIT4=-1
GPIO_LED_INIT5=-1
GPIO_LED_INIT6=-1
GPIO_LED_INIT7=-1
GPIO_LED_INIT8=-1
GPIO_LED_ALERT1=14
GPIO_LED_ALERT2=-1
GPIO_LED_ALERT3=-1
GPIO_LED_ALERT4=-1
GPIO_LED_POWER=15
GPIO_USB_POWER=-1
GPIO_USB_POWER2=-1
GPIO_RST_INIC=-1
......@@ -59,7 +59,7 @@ int do_tftpd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
#endif
/* Wait forever for an image */
NetLoop(TFTPD);
NetLoopHttpd();
perform_system_reset();
}
else if (DETECT_BTN_WPS()) /* WPS button */
......
This diff is collapsed.
<!DOCTYPE HTML>
<html>
<html lang=ca>
<head>
<meta charset="utf-8">
<title>Firmware update</title>
<title>Entorn de rescat i actualització del programari</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="m">
<h1>FIRMWARE UPDATE</h1>
<p>You are going to update <strong>firmware</strong> on the device.<br>Please, choose file from your local hard drive and click <strong>Update firmware</strong> button.</p>
<form method="post" enctype="multipart/form-data"><input type="file" name="firmware"><input type="submit" value="Update firmware"></form>
<h1>Entorn de rescat i actualització del programari</h1>
<p>Des d'aquesta pàgina podreu <strong>actualitzar el programari</strong> del dispositiu.<br>Si us plau, escolliu el fitxer que conté l'actualització del vostre ordinador i feu clic al botó <strong>Actualitza programari</strong>.</p>
<form method="post" enctype="multipart/form-data"><input type="file" name="firmware"><input type="submit" value="Actualitza programari"></form>
<div class="i w">
<strong>WARNINGS</strong>
<ul>
<li>do not power off the device during update</li>
<li>if everything goes well, the device will restart</li>
<li>you can upload whatever you want, so be sure that you choose proper firmware image for your device</li>
</ul>
<p>El procés d'actualització dura uns pocs minuts. Durant aquest temps, <strong>no desendolleu el dispositiu de l'alimentació</strong>.</p>
<p>Si tot va bé, el dispositiu es reiniciarà automàticament en acabar.</p>
<p>Assegureu-vos de pujar el fitxer amb el programari adequat per al vostre dispositiu, ja que no es fa cap comprovació automàtica.</p>
</div>
<div id="m">Please, go <a href="uboot.html">here</a> to update U-Boot or <a href="factory.html">here</a> to update Factory.</div>
<div id="f">This code is based on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
<!-- Si voleu actualitzar l'U-Boot o els paràmetres de fàbrica, sota la vostra responsabilitat (mai s'ha provat), aquí teniu l'enllaç comentat:
<div id="m">Feu clic <a href="uboot.html">aquí</a> per actualitzar l'U-Boot, o bé <a href="factory.html">aquí</a> per actualitzar la partició "Factory".</div>
-->
</div>
<div id="f">
<p>Podeu trobar més informació sobre aquest projecte de programari obert al <a href="https://gitlab.com/guifi-exo/u-boot-for-phicomm-ke-2p-mt7621" target="_blank">GitLab de l'eXO</a> o a <a href="https://exo.cat" target="_blank">eXO.cat</a></p>
<p>Aquest codi està basat en el projecte <a href="https://github.com/gnubee-git/GnuBee_PCx_uboot.git" target="_blank">GnuBee PCx U-Boot</a>, que es basa en el projecte <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">PEPE2K U-Boot mod</a>, alhora basat en el projecte que es basa en el projecte <a href="https://www.denx.de/wiki/U-Boot" target="_blank">U-Boot</a>. Visca el programari lliure!</p>
</div>
<div id="f">You can find more information about this project on <a href="https://github.com/pepe2k/u-boot_mod" target="_blank">GitHub</a></div>
</body>
</html>
</html>
\ No newline at end of file
......@@ -337,7 +337,7 @@ extern unsigned int CFG_BLOCKSIZE;
#else
#define CFG_BOOTLOADER_SIZE 0x30000
#define CFG_CONFIG_SIZE 0x10000
#define CFG_FACTORY_SIZE 0x10000
#define CFG_FACTORY_SIZE 0x60000
#endif
#define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_BOOTLOADER_SIZE)
#define CFG_FACTORY_ADDR (CFG_FLASH_BASE + CFG_BOOTLOADER_SIZE + CFG_CONFIG_SIZE)
......@@ -529,7 +529,7 @@ extern unsigned int CFG_BLOCKSIZE;
#define WEBFAILSAFE_UPLOAD_UBOOT_ADDRESS 0x0
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS 0x50000
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS 0xa0000
//从内存中加载的地址这个地址是正确的
......
......@@ -2285,7 +2285,7 @@ retry_kernel_tftp:
perform_system_reset();
#endif
//bootm bc050000
//bootm bc0a0000
argc = 2;
sprintf(addr_str, "0x%X", CFG_KERN_ADDR);
argv[1] = &addr_str[0];
......@@ -2305,6 +2305,7 @@ retry_kernel_tftp:
case '6'://httpd
printf("web load\n");
LED_ALERT_ON();
NetLoopHttpd();
break;
......
......@@ -119,6 +119,7 @@ int do_http_progress(const int state){
case WEBFAILSAFE_PROGRESS_UPGRADE_READY:
printf("HTTP ugrade is done! Rebooting...\n\n");
perform_system_reset();
break;
case WEBFAILSAFE_PROGRESS_UPGRADE_FAILED:
......
......@@ -2030,7 +2030,7 @@ int NetLoopHttpd(void){
do_bootm(p_gmdtp,0,2,argv);
}
printf("\nWeb failsafe mode about to reset...\n\n");
do_reset(NULL, 0, 0, NULL);
}
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment