luci web网页起不来,有没有办法用串口升级固件呢?
离线
离线
root@Widora:~# sysupgrade
Usage: /sbin/sysupgrade [<upgrade-option>...] <image file or URL>
/sbin/sysupgrade [-q] [-i] <backup-command> <file>upgrade-option:
-d <delay> add a delay before rebooting
-f <config> restore configuration from .tar.gz (file or url)
-i interactive mode
-c attempt to preserve all changed files in /etc/
-n do not save configuration over reflash
-T | --test
Verify image and config .tar.gz but do not actually flash.
-F | --force
Flash image even if image checks fail, this is dangerous!
-q less verbose
-v more verbose
-h | --help display this helpbackup-command:
-b | --create-backup <file>
create .tar.gz of files specified in sysupgrade.conf
then exit. Does not flash an image. If file is '-',
i.e. stdout, verbosity is set to 0 (i.e. quiet).
-r | --restore-backup <file>
restore a .tar.gz created with sysupgrade -b
then exit. Does not flash an image. If file is '-',
the archive is read from stdin.
-l | --list-backup
list the files that would be backed up when calling
sysupgrade -b. Does not create a backup file.
-n do not save configuration over reflash
这个选项是不保留旧配置
如果没有重要的配置文件,建议不保留配置升级
离线
搞定,非常感谢!
离线
运行
sysupgrade openwrt-ramips-mt7688-Widora-squashfs-sysupgrade.bin
现在网页跑起来了, 但是原来那些设置的菜单、页面都不见了.
要怎么才能找回来呢?
离线
make menuconfig
[ ] Image configuration ---> Separate feed repositories ---> [ * ] Enable feed luci
LuCI --->看看这里有没有你想要的?
https://github.com/openwrt/luci
要这样才行哦:
./scripts/feeds update luci
./scripts/feeds install -a -p luci
离线
晕哥 说:make menuconfig
[ ] Image configuration ---> Separate feed repositories ---> [ * ] Enable feed luci
LuCI --->看看这里有没有你想要的?
https://github.com/openwrt/luci
要这样才行哦:
./scripts/feeds update luci
./scripts/feeds install -a -p luci
非常感谢,
sysupgrade openwrt-ramips-mt7688-Widora-squashfs-sysupgrade.bin
这样可以了,终于看到了网页界面.
离线
终于可以安心睡觉了, 明天开始搞Linux内核声卡配置
离线
离线
https://github.com/hnhkj/CC15.05/commit/d74fcf753b37a2e6e8945ce56de30e341d06377d
+--- a/sound/soc/mtk/Makefile
++++ b/sound/soc/mtk/Makefile
+@@ -17,6 +17,7 @@ KBUILD_CFLAGS += -DCONFIG_SND_MT76XX_SOC
+ KBUILD_CFLAGS += -DCONFIG_I2S_WM8960
+ #KBUILD_CFLAGS += -DCONFIG_I2S_MCLK_12P288MHZ
+ KBUILD_CFLAGS += -DCONFIG_I2S_MCLK_12MHZ
++KBUILD_CFLAGS += -DCONFIG_I2S_IN_MCLK
+ KBUILD_CFLAGS += -DCONFIG_GDMA_EVERYBODY
+ KBUILD_CFLAGS += -DSURFBOARDINT_DMA=15
+ KBUILD_CFLAGS += -DRALINK_INTCTL_DMA=128
Linkit的默认的声卡是WM8960,该声卡为I2S接口。Linkit默认WM8960使用的为外部晶振提供时钟频率。所以如果我们希望采用MT7688的REF_CLK0信号作为WM8960的时钟信号的话,我们就需要对MTK的配置文件进行一些修改。
关于I2S和WM8960声卡的代码都在这个附近:
openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/linux-3.18.29/sound/soc/mtk
板子上面初始化脚本:
/etc/modules.d/90-sound-mtk
ralink_gdma
snd-soc-wm8960
i2c_wm8960
snd-soc-mt76xx-i2s-ctl
snd-soc-mt76xx-i2s
snd-soc-mt76xx-pcm
snd-soc-mt76xx-machine
离线