sama5d2 4g 模块 记录

会解压出一个目录:
/home/sama5d2/multi-serial/
进入目录:
/home/sama5d2/multi-serial/kernel/SAMA_XIN2/
执行如下命令:
export PATH=$PATH:/home/sama5d2/multi-serial/toolchain/gcc-arm-none-eabi-5_2-2015q4/bin
export CROSS_COMPILE=arm-none-eabi-
export ARCH=arm

make ARCH=arm CROSS_COMPILE=arm-none-eabi- distclean
make ARCH=arm CROSS_COMPILE=arm-none-eabi- sama5_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- zImage dtbs

sama5d2 4g 模块 记录
sama5d2 4g 模块 记录
sama5d2 4g 模块 记录
sama5d2 4g 模块 记录

sama5d2 4g 模块 记录

sama5d2 4g 模块 记录
buidroot:
sama5d2 4g 模块 记录
sama5d2 4g 模块 记录
sama5d2 4g 模块 记录

实现4G模块EC20在linux系统下的拨号上网
可以 使用

板子上面:

pppd -V

pppd: unrecognized option ‘-V’
pppd version 2.4.7
Usage: pppd [ options ], where options are:
Communicate over the named device
Set the baud rate to
: Set the local and/or remote interface IP
addresses. Either one may be omitted.
asyncmap Set the desired async map to hex
auth Require authentication from peer
connect

Invoke shell command

to set up the serial line
crtscts Use hardware RTS/CTS flow control
defaultroute Add default route through interface
file Take options from file
modem Use modem control lines
mru Set MRU value to for negotiation
See pppd(8) for more options.

https://blog.csdn.net/wwt18811707971/article/details/54291747

pppd call wcdma &

/etc/ppp/peers/
wcdma wcdma-chat-connect wcdma-chat-disconnect

新的文件系统 sshd 服务启动:

16	sshd配置文件
16.1	/etc/ssh/ sshd_config

# override default of no subsystems
Subsystem       sftp    /usr/libexec/sftp-server
PermitRootLogin yes
Protocol 2

配置网络:

17	网络配置:
/etc/network/ interfaces
# interface file auto-generated by buildroot
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.99.43
netmask 255.255.255.0
gateway 192.168.99.1

#auto eth0
#iface eth0 inet dhcp

G:\SAMA5D2\sam5d2_buildroot配置.docx

保存 内核的配置文件:
make savedefconfig

保存内核配置:
内核中修改和保存defconfig的方法

  1. 要修改在arch/arm/configs下的文件xxx_defconfig
  2. make xxx_defconfig 会生成.config文件。
  3. make menuconfig 修改配置后保存
  4. make savedefconfig 生成defconfgi文件
  5. cp defconfig arch/arm/configs/xxx_defconfig 保存
    这样保存的defconfig文件,配置最小化

生成 可烧写 文件系统:

/home/sama5d2/multi-serial/ubiCreate/
sudo ./sama5d2_rootfs_to_ubi.sh

相关文章: