Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
646f4ae7
L
lede
项目概览
tbblgm119
/
lede
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lede
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
646f4ae7
编写于
3月 07, 2019
作者:
C
coolsnowwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: add a script for generating Linksys EA6350v3 factory image
上级
c96a9b1f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
76 addition
and
2 deletion
+76
-2
include/image-commands.mk
include/image-commands.mk
+7
-0
scripts/linksys-image.sh
scripts/linksys-image.sh
+67
-0
target/linux/ipq40xx/Makefile
target/linux/ipq40xx/Makefile
+2
-2
未找到文件。
include/image-commands.mk
浏览文件 @
646f4ae7
...
...
@@ -274,6 +274,13 @@ define Build/combined-image
@mv
$@.new
$@
endef
define
Build/linksys-image
$(TOPDIR)/scripts/linksys-image.sh
\
"$(call param_get_default,type,$(1),$(DEVICE_NAME))"
\
$@
$@.new
mv
$@.new
$@
endef
define
Build/openmesh-image
$(TOPDIR)/scripts/om-fwupgradecfg-gen.sh
\
"$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))"
\
...
...
scripts/linksys-image.sh
0 → 100755
浏览文件 @
646f4ae7
#!/bin/sh
#
# Copyright (C) 2018 Oceanic Systems (UK) Ltd
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Maintained by: Ryan Pannell <ryan [at] o s u k l .com> <github.com/Escalion>
#
# Write Linksys signature for factory image
# This is appended to the factory image and is tested by the Linksys Upgrader - as observed in civic.
# The footer is 256 bytes. The format is:
# .LINKSYS. This is detected by the Linksys upgrader before continuing with upgrade. (9 bytes)
# <VERSION> The version number of upgrade. Not checked so use arbitary value (8 bytes)
# <TYPE> Model of target device, padded (0x20) to (15 bytes)
# <CRC> CRC checksum of the image to flash (8 byte)
# <padding> Padding (0x20) (7 bytes)
# <signature> Signature of signer. Not checked so use Arbitary value (16 bytes)
# <padding> Padding (0x00) (192 bytes)
# 0x0A (1 byte)
## version history
# * version 1: initial commit
set
-e
ME
=
"
${
0
##*/
}
"
usage
()
{
echo
"Usage:
$ME
<type> <in filename>"
[
"
$IMG_OUT
"
]
&&
rm
-f
"
$IMG_OUT
"
exit
1
}
[
"$#"
-lt
3
]
&&
usage
TYPE
=
$1
tmpdir
=
"
$(
mktemp
-d
2> /dev/null
)
"
if
[
-z
"
$tmpdir
"
]
;
then
# try OSX signature
tmpdir
=
"
$(
mktemp
-t
'ubitmp'
-d
)
"
fi
if
[
-z
"
$tmpdir
"
]
;
then
exit
1
fi
trap
"rm -rf
$tmpdir
"
EXIT
IMG_TMP_OUT
=
"
${
tmpdir
}
/out"
IMG_IN
=
$2
IMG_OUT
=
"
${
IMG_IN
}
.new"
[
!
-f
"
$IMG_IN
"
]
&&
echo
"
$ME
: Not a valid image:
$IMG_IN
"
&&
usage
dd
if
=
"
${
IMG_IN
}
"
of
=
"
${
IMG_TMP_OUT
}
"
CRC
=
$(
printf
"%08X"
$(
dd
if
=
"
${
IMG_IN
}
"
bs
=
$(
stat
-c
%s
"
${
IMG_IN
}
"
)
count
=
1|cksum|
cut
-d
' '
-f1
))
printf
".LINKSYS.01000409%-15s%-8s%-7s%-16s"
"
${
TYPE
}
"
"
${
CRC
}
"
""
"K0000000F0246434"
>>
"
${
IMG_TMP_OUT
}
"
dd
if
=
/dev/zero
bs
=
1
count
=
192
conv
=
notrunc
>>
"
${
IMG_TMP_OUT
}
"
printf
'\12'
>>
"
${
IMG_TMP_OUT
}
"
cp
"
${
IMG_TMP_OUT
}
"
"
${
IMG_OUT
}
"
target/linux/ipq40xx/Makefile
浏览文件 @
646f4ae7
...
...
@@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES
+=
\
kmod-usb-dwc3-of-simple
\
kmod-leds-gpio kmod-gpio-button-hotplug swconfig
\
kmod-ath10k
-ct wpad-basic
\
kmod-usb3 kmod-usb-dwc3 ath10k-firmware-qca4019
-ct
kmod-ath10k
wpad
\
kmod-usb3 kmod-usb-dwc3 ath10k-firmware-qca4019
$(eval
$(call
BuildTarget))
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录