Compare commits

...

6 Commits

Author SHA1 Message Date
lxowalle
d4003f15b3 * fix reboot adbd issue 2026-01-14 09:49:36 +08:00
lxowalle
61013d819e * add vsftpd & lftp package 2025-12-30 12:12:28 +08:00
lxowalle
6073d5d3e6 * support sdio bluetooth 2025-12-29 18:47:11 +08:00
BuGu
0e5887fed6 Merge pull request #111 from tlnguyen-smu/cve-req-2550
i2c: fix stack buffer overflow vulnerability in i2c md command
2025-12-25 19:33:03 +08:00
lamtung-monash
198086d16e i2c: fix stack buffer overflow vulnerability in i2c md command 2025-12-17 11:55:45 +08:00
lxowalle
f3639b07dd * setting aic8800 sdio clock to 25Mhz 2025-12-11 14:49:20 +08:00
8 changed files with 39 additions and 23 deletions

View File

@@ -7,8 +7,9 @@ then
if [ -z "$(cat $UDC_PATH | tr -d '[:space:]')" ];
then
echo "try restart usb device"
/etc/init.d/S03usbdev stop
/etc/init.d/S03usbdev start
/etc/init.d/S08usbdev stop
/etc/init.d/S08usbdev start
/etc/init.d/S30gadget_nic restart
fi
sleep 5
done

View File

@@ -199,7 +199,7 @@ then
if [ -e /boot/usb.adbd ]
then
if [ -z $(ps aux | grep adbd_monitor | grep -v grep) ]; then
if [ -z "$(ps aux | grep adbd_monitor | grep -v grep)" ]; then
/etc/adbd_monitor.sh &
fi
fi

View File

@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# Buildroot -ga3ccb527b-dirty Configuration
# Buildroot -g6073d5d3e Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
@@ -3127,7 +3127,22 @@ BR2_PACKAGE_IW=y
# BR2_PACKAGE_KSMBD_TOOLS is not set
# BR2_PACKAGE_LEAFNODE2 is not set
# BR2_PACKAGE_LFT is not set
# BR2_PACKAGE_LFTP is not set
BR2_PACKAGE_LFTP=y
#
# Commands
#
BR2_PACKAGE_LFTP_CMD_MIRROR=y
BR2_PACKAGE_LFTP_CMD_SLEEP=y
# BR2_PACKAGE_LFTP_CMD_TORRENT is not set
#
# Protocols
#
BR2_PACKAGE_LFTP_PROTO_FISH=y
BR2_PACKAGE_LFTP_PROTO_FTP=y
BR2_PACKAGE_LFTP_PROTO_HTTP=y
BR2_PACKAGE_LFTP_PROTO_SFTP=y
# BR2_PACKAGE_LIGHTTPD is not set
# BR2_PACKAGE_LINKNX is not set
# BR2_PACKAGE_LINKS is not set
@@ -3301,7 +3316,7 @@ BR2_PACKAGE_TRACEROUTE=y
# BR2_PACKAGE_VDR is not set
# BR2_PACKAGE_VNSTAT is not set
# BR2_PACKAGE_VPNC is not set
# BR2_PACKAGE_VSFTPD is not set
BR2_PACKAGE_VSFTPD=y
# BR2_PACKAGE_VTUN is not set
# BR2_PACKAGE_WAVEMON is not set
# BR2_PACKAGE_WGET is not set

View File

@@ -31,7 +31,7 @@ CONFIG_EXT_FEM_8800DCDW = n
CONFIG_RESV_MEM_SUPPORT ?= y
CONFIG_AMSDU_RX = y
CONFIG_IRQ_FALL ?= n
CONFIG_SDIO_BT = n
CONFIG_SDIO_BT = y
CONFIG_RADAR_OR_IR_DETECT =n
CONFIG_FOR_IPCAM = n
CONFIG_BAND_STEERING = n

View File

@@ -525,7 +525,7 @@ enum chip_rev {
#define AICBT_TXPWR_LVL_DEFAULT_8800d80x2 AICBT_TXPWR_LVL_8800d80x2
#define FEATURE_SDIO_CLOCK 50000000 // 0: default, other: target clock rate
#define FEATURE_SDIO_CLOCK 25000000 // 0: default, other: target clock rate
#define FEATURE_SDIO_CLOCK_V3 150000000 // 0: default, other: target clock rate
#define FEATURE_SDIO_PHASE 2 // 0: default, 2: 180°

View File

@@ -12,7 +12,7 @@ CONFIG_PLATFORM_AMLOGIC ?= n
CONFIG_PLATFORM_UBUNTU ?= y
CONFIG_SUPPORT_LPM ?= n
CONFIG_SUPPORT_LPM ?= y
CONFIG_AUTO_PM ?= n
aic8800_btlpm-y := \

View File

@@ -72,8 +72,8 @@ CONFIG_ARP_OFFLOAD =y
CONFIG_RADAR_OR_IR_DETECT =n
CONFIG_DOWNLOAD_FW =n
CONFIG_RFTEST=y
CONFIG_USB_BT =y
CONFIG_SDIO_BT=n
CONFIG_USB_BT =n
CONFIG_SDIO_BT=y
CONFIG_USE_5G ?= y
CONFIG_CREATE_TRACE_POINTS = n
CONFIG_TXRX_THREAD_PRIO = y

View File

@@ -248,10 +248,10 @@ int i2c_set_bus_speed(unsigned int speed)
*
* Returns the address length.
*/
static uint get_alen(char *arg, int default_len)
static uint get_alen(char *arg, uint default_len)
{
int j;
int alen;
uint j;
uint alen;
alen = default_len;
for (j = 0; j < 8; j++) {
@@ -295,7 +295,7 @@ static int do_i2c_read(struct cmd_tbl *cmdtp, int flag, int argc,
{
uint chip;
uint devaddr, length;
int alen;
uint alen;
u_char *memaddr;
int ret;
#if CONFIG_IS_ENABLED(DM_I2C)
@@ -349,7 +349,7 @@ static int do_i2c_write(struct cmd_tbl *cmdtp, int flag, int argc,
{
uint chip;
uint devaddr, length;
int alen;
uint alen;
u_char *memaddr;
int ret;
#if CONFIG_IS_ENABLED(DM_I2C)
@@ -517,8 +517,8 @@ static int do_i2c_md(struct cmd_tbl *cmdtp, int flag, int argc,
{
uint chip;
uint addr, length;
int alen;
int j, nbytes, linebytes;
uint alen;
uint j, nbytes, linebytes;
int ret;
#if CONFIG_IS_ENABLED(DM_I2C)
struct udevice *dev;
@@ -637,9 +637,9 @@ static int do_i2c_mw(struct cmd_tbl *cmdtp, int flag, int argc,
{
uint chip;
ulong addr;
int alen;
uint alen;
uchar byte;
int count;
uint count;
int ret;
#if CONFIG_IS_ENABLED(DM_I2C)
struct udevice *dev;
@@ -724,8 +724,8 @@ static int do_i2c_crc(struct cmd_tbl *cmdtp, int flag, int argc,
{
uint chip;
ulong addr;
int alen;
int count;
uint alen;
uint count;
uchar byte;
ulong crc;
ulong err;
@@ -1033,7 +1033,7 @@ static int do_i2c_loop(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
uint chip;
int alen;
uint alen;
uint addr;
uint length;
u_char bytes[16];