SAMA5D3 Xplained Board
1、How to build Buildroot for AT91
http://www.at91.com/linux4sam/bin/view/Linux4SAM/BuildRootBuild
1)自定义交叉工具链 toolchain
│ │ Toolchain type (External toolchain) ---> │ │
│ │ *** Toolchain External Options *** │ │
│ │ Toolchain (Custom toolchain) ---> │ │
│ │ Toolchain origin (Pre-installed toolchain) ---> │ │
│ │ (/usr/local/gcc-linaro-arm-linux-gnueabihf) Toolchain path │ │
│ │ ($(ARCH)-linux-gnueabihf) Toolchain prefix │ │
│ │ External toolchain gcc version (4.7.x) ---> │ │
│ │ External toolchain kernel headers series (3.2.x) ---> │ │
│ │ External toolchain C library (glibc/eglibc) --->
Linux Kernel | YES |
---|---|
Kernel version | Custom Git tree |
URL of custom Git repository | https://github.com/raspberrypi/linux |
Custom Git version | rpi-3.6.y |
Kernel configuration | Using a defconfig |
Defconfig name | bcmrpi |
Kernel binary format | zImage |
make ARCH=arm sama5_defconfig
make ARCH=arm
make ARCH=arm uImage LOADADDR=0x20008000
make ARCH=arm dtbs
http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATSAMA5D3-XPLD
http://www.eewiki.net/display/linuxonarm/SAMA5D3
http://www.at91.com/linux4sam/bin/view/Linux4SAM/
之前没用过这款IC,有个卖板子的也整理了些基本操作。
http://www.myir-tech.com/product/myd-sama5d3x.htm#loc
https://wenku.baidu.com/view/d4c3cf7fbed5b9f3f80f1c5d.html
http://blog.csdn.net/iefswang/article/details/27096393
4) gpio
http://www.myir-tech.com/bbs/forum.php?mod=viewthread&tid=7860
x) 刷机涉及到 openssl-1.1.0f.tar.gz 的安装
https://blog.csdn.net/xiatiancc/article/details/78913163
wget http://www.openssl.org/source/openssl-1.1.0f.tar.gz
tar -zxvf openssl-1.1.0f.tar.gz
cd openssl-1.1.0f
./config shared zlib
make
sudo make install
默认的安装路径
installing libcrypto.a installing libssl.a installing libcrypto.so.1.0.0 installing libssl.so.1.0.0 make[1]: Entering directory `/usr/local/ssl/lib64' make[2]: Entering directory `/usr/local/ssl/lib64' make[2]: Leaving directory `/usr/local/ssl/lib64' make[2]: Entering directory `/usr/local/ssl/lib64' make[2]: Leaving directory `/usr/local/ssl/lib64' make[1]: Leaving directory `/usr/local/ssl/lib64' OpenSSL shared libraries have been installed in: /usr/local/ssl cp libcrypto.pc /usr/local/ssl/lib64/pkgconfig chmod 644 /usr/local/ssl/lib64/pkgconfig/libcrypto.pc cp libssl.pc /usr/local/ssl/lib64/pkgconfig chmod 644 /usr/local/ssl/lib64/pkgconfig/libssl.pc cp openssl.pc /usr/local/ssl/lib64/pkgconfig chmod 644 /usr/local/ssl/lib64/pkgconfig/openssl.pc
#修改历史的OpenSSL文件设置备份
sudo mv /usr/bin/openssl /usr/bin/openssl.old
sudo mv /usr/include/openssl /usr/include/openssl.old
#设置软连接使其使用新的OpenSSL版本 刚刚安装的OpenSSL默认安装在/usr/local/ssl
sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
sudo ln -s /usr/local/ssl/include/openssl /usr/include/openssl
#更新动态链接库数据
//echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
sudo sh -c "echo '/usr/local/ssl/lib' >> /etc/ld.so.conf"
sudo ldconfig -v
我们再来看看 OpenSSL 版本信息.
安装到指定路径--prefix=/usr/local/openssl
./config shared zlib --prefix=/usr/local/openssl && make && make install
[root@localhost src]# tar -xzvf openssl-1.0.1s.tar.gz
[root@localhost src]# cd openssl-1.0.1s
[root@localhost openssl-1.0.1s]# ./config -fPIC --prefix=/usr/local/openssl enable-shared
[root@localhost openssl-1.0.1s]# ./config -t
[root@localhost openssl-1.0.1s]# make && make install
tar -xzvf openssl-1.0.0.tar.gz cd openssl-1.0.0 ./config -fPIC --prefix=$(pwd)/_install enable-shared ./config -t make rm -f /usr/bin/pod2man sudo make install
y) usb模拟网卡挂载nfs
//ubuntu主机
sudo nano /etc/exports
/home/dong/nfs *(rw,sync,no_root_squash,no_subtree_check)
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/rpcbind restart
sudo ifconfig usb0 192.168.10.1
//设备端
modprobe g_multi file=/dev/mmcblk0p5,/dev/mmcblk0p6 ro=0,1 luns=2 stall=0 removable=1,1 iSerialNumber=3000111
ifconfig usb1 192.168.10.2
mount -t nfs -o nolock 192.168.10.1:/home/dong/nfs /home/tmp