Hello, > > >> It would be make life easier if there is the possibility to flash > > >> directly from dd-wrt webif. > > > > > > most likely true... i will investigate how to do so ....
> > DD-Wrt normally awaits a TRX flash image (HDR0 header) with the > > "noheader" flag set. > > See https://forum.openwrt.org/viewtopic.php?pid=154817#p154817 > But I'm still unable to flash openwrt from dd-wrt webif if it has the HDR0 > header. It tells me that the firmware is invalid :( I was wrong, there is the stock FW on the device and not dd-wrt. > I did some research too and found the images for the device build by > brainslayer > (http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fothers%2Feko%2FBr >ainSlayer-V24-preSP2%2F2011%2F12-20-11-r18024%2Fbuffalo_whr_hp_g300n/): > whr-hp-g300n-firmware-MULTI.bin > The first one (for use with webif) looks completly different. At dd-wrt svn (src/router/Makefile.danube) I found the values for the WBMR-HP-G300H: tools/bufenc/encryptRC4 WBMR-HP-G300H 1.74 Buffalo $(ARCH)-uclibc/aligned.uimage $(ARCH)-uclibc/wmbr-firmware.enc tools/bufenc/mkfw-lan -hw_ver=2 -hcrypt="Buffalo" "WBMR-HP-G300H" "WBMR-HP-G300H" "1.74" "3.02" "US-EU-AP-KR-CH-TW-DE-JP" "mlang8" "lan" "" 80002000 80002000 1 $(ARCH)-uclibc/wmbr-firmware.enc $(ARCH)-uclibc/wmbr-firmware_MULTI.enc Ok, tools/bufenc/encryptRC4 seems to be buffalo-enc, tools/bufenc/mkfw-lan buffalo-enc. On the device there are this settings: # cat /etc/BRAND_NAME WBMR-HP-G300H # cat /etc/PRODUCT_NAME WBMR-HP-G300H # cat /etc/HW_VERSION 1 # cat /etc/MAJOR_VERSION 1.74 # cat /etc/MINOR_VERSION 3.02 # cat /etc/LANGUAGE eng-de-fr-it-es-zh_cn-th # cat /etc/SPECIFICATION AP-EU-DE cat /etc/PLATFORM lan Depending on this values I adapted the cmd lines from WHRHPG300N (target/linux/ar71xx/image/Makefile): buffalo-enc -p "WBMR-HP-G300H" -v 1.74 -i openwrt-lantiq-ar9-WBMR-squashfs.image -o factory.enc buffalo-tag -p "WBMR-HP-G300H" -b "WBMR-HP-G300H" -a lan -v 1.74 -m 3.02 -l mlang8 -w 1 -c 0x80002000 -d 0x80002000 -f 1 -r M_ -i factory.enc -o openwrt-lantiq-ar9-WBMR-squashfs-factory_test.trx Then I tried to flash it via webif. Console shows now: cgi.c(3617) UploadCgi :x:btpd STOP-SUCCESS (0 sec) cgi.c(3859) UploadCgi :x:MEMORY CHECK... MidLayer.c(2067) ML_CheckMemory :X:MemFree = 23652 MidLayer.c(2071) ML_CheckMemory :X:Buffers = 4000 MidLayer.c(2075) ML_CheckMemory :X:Cached = 12788 MidLayer.c(2079) ML_CheckMemory :X:Active = 11464 MidLayer.c(2083) ML_CheckMemory :X:Inactive = 7520 cgi.c(4416) UploadCgi :DEBUG:### CFH->mark=WBMR-HP-G300H ### cgi.c(4460) UploadCgi :DEBUG:### NON-CRYPT ### cgi.c(4467) UploadCgi :DEBUG:firm_size:2887884 lTotalSize:2887884 cgi.c(4469) UploadCgi :DEBUG:### cyg_posix_crc32 start ### cgi.c(4471) UploadCgi :DEBUG:### cyg_posix_crc32 end new_CRC32:616818920### cgi.c(4483) UploadCgi :DEBUG:firm_size:2887884 lCRC32:616818920 cgi.c(4486) UploadCgi :DEBUG:CRC OK !UploadCgi(4486) cgi.c(4532) UploadCgi :X:ADSL:AnnexB size 1946177280 Upload seems ok but I got a reset from peer -> the upgrade script/bin died I found a image from brainslayer (thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=148711&postdays=0&postorder=asc&start=30, download: http://www.dd-wrt.com/phpBB2/download.php?id=21546, needs registered at dd-wrt forum) for comparing. Maybe someone has a idea whats wrong. With best regards Christoph -- Linux User Group Wernigerode http://www.lug-wr.de/
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel