configs/stm32f4discovery: Remove STM32F4BB dependence from rndis; add RAMDISK support.
This commit is contained in:
parent
691676ac6b
commit
35697ed234
@ -2210,6 +2210,54 @@ Configuration Sub-directories
|
||||
This configuration uses the example at apps/examples/rgbled to drive the
|
||||
external RGB LED>
|
||||
|
||||
rndis:
|
||||
------
|
||||
|
||||
This is a board configuration to demonstrate how to use Ethernet-over-USB,
|
||||
in this case using the RNDIS protocol. Using it you can get access to your
|
||||
board using Telnet or you can use transfer file to it. Both steps will be
|
||||
explained below.
|
||||
|
||||
Your board will be get IP address from a DHCP server. If you want to use a
|
||||
fixed IP instead using DHCP, you need to disable the DHCP Client and set
|
||||
up its IP. For more info watch: www.youtube.com/watch?v=8noH8v7xNgs
|
||||
|
||||
You can access the board's NuttShell just typing in the Linux terminal:
|
||||
|
||||
$ telnet 10.0.0.2
|
||||
|
||||
You should see something like this:
|
||||
|
||||
Trying 10.0.0.2...
|
||||
Connected to 10.0.0.2.
|
||||
Escape character is '^]'.
|
||||
|
||||
NuttShell (NSH)
|
||||
nsh>
|
||||
|
||||
This board configuration has support to RAMDISK because we need a writable
|
||||
filesystem to get files from the computer. Then you need to create first a
|
||||
RAMDISK and mount it using these steps:
|
||||
|
||||
nsh> mkrd 64
|
||||
nsh> mkfatfs /dev/ram0
|
||||
nsh> mount -t vfat /dev/ram0 /mnt
|
||||
|
||||
Open a new Linux terminal and start a webserver, Python one embedded:
|
||||
|
||||
$ python -m SimpleHTTPServer
|
||||
|
||||
It will create a webserver serving in the port 8000 and will share files
|
||||
in the current directory where it was executed.
|
||||
|
||||
Then in the NuttShell you can run these commands to download a small file:
|
||||
|
||||
nsh> cd /mnt
|
||||
nsh> wget http://10.0.0.1:8000/test.txt
|
||||
nsh> ls -l
|
||||
/mnt:
|
||||
-rw-rw-rw- 23 test.txt
|
||||
|
||||
usbnsh:
|
||||
-------
|
||||
|
||||
|
@ -1,11 +1,8 @@
|
||||
# CONFIG_ARCH_FPU is not set
|
||||
# CONFIG_MMCSD_MMCSUPPORT is not set
|
||||
# CONFIG_MMCSD_SPI is not set
|
||||
# CONFIG_NSH_ARGCAT is not set
|
||||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||
# CONFIG_NSH_CMDPARMS is not set
|
||||
# CONFIG_NSH_DISABLE_DATE is not set
|
||||
# CONFIG_STM32_SDIO_DMA is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="stm32f4discovery"
|
||||
CONFIG_ARCH_BOARD_STM32F4_DISCOVERY=y
|
||||
@ -33,9 +30,6 @@ CONFIG_HOST_WINDOWS=y
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_MAX_TASKS=16
|
||||
CONFIG_MAX_WDOGPARMS=2
|
||||
CONFIG_MMCSD=y
|
||||
CONFIG_MMCSD_MULTIBLOCK_DISABLE=y
|
||||
CONFIG_MMCSD_SDIO=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_NETDB_DNSCLIENT=y
|
||||
CONFIG_NETDB_DNSSERVER_IPv4ADDR=0x0
|
||||
@ -68,29 +62,25 @@ CONFIG_NSH_READLINE=y
|
||||
CONFIG_PREALLOC_MQ_MSGS=4
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_PREALLOC_WDOGS=16
|
||||
CONFIG_RAMDISK=y
|
||||
CONFIG_RAM_SIZE=114688
|
||||
CONFIG_RAM_START=0x20000000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RNDIS=y
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_HPWORKPRIORITY=192
|
||||
CONFIG_SCHED_LPWORK=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_SDCLONE_DISABLE=y
|
||||
CONFIG_SENSORS=y
|
||||
CONFIG_START_DAY=13
|
||||
CONFIG_START_MONTH=9
|
||||
CONFIG_START_YEAR=2014
|
||||
CONFIG_STM32F4DISBB=y
|
||||
CONFIG_STM32_DMA2=y
|
||||
CONFIG_STM32_DMACAPABLE=y
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=y
|
||||
CONFIG_STM32_OTGFS=y
|
||||
CONFIG_STM32_PWR=y
|
||||
CONFIG_STM32_SDIO=y
|
||||
CONFIG_STM32_SPI1=y
|
||||
CONFIG_STM32_USART6=y
|
||||
CONFIG_USART6_RXBUFSIZE=64
|
||||
CONFIG_USART6_SERIAL_CONSOLE=y
|
||||
CONFIG_USART6_TXBUFSIZE=64
|
||||
CONFIG_STM32_USART2=y
|
||||
CONFIG_USART2_SERIAL_CONSOLE=y
|
||||
CONFIG_USBDEV=y
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
|
Loading…
Reference in New Issue
Block a user