常用网址
U-boot下载
https://www.denx.de/wiki/U-Boot/
- https://www.denx.de/wiki/U-Boot/
- https://www.denx.de/wiki/U-Boot/SourceCode
Linux内核下载
https://www.kernel.org/
- https://mirrors.edge.kernel.org/pub/
- https://mirrors.edge.kernel.org/pub/linux/
- https://mirrors.edge.kernel.org/pub/linux/kernel/
- https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/
- …
- https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/
- https://mirrors.edge.kernel.org/pub/linux/kernel/
- https://mirrors.edge.kernel.org/pub/linux/
华清源
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
其他
解决屏幕自适应问题
执行指令
sudo apt-get install open-vm-tools
sudo apt-get install open-vm*
rebooot
交叉编译器安装
解压到指定位置/usr/local/arm
sudo tar -vxf xxx.tar.gz
打开/etc/profile添加对应环境变量
export PATH=$PATH:/usr/local/arm/xxx/bin
安装相关库(目前不知道啥用)
sudo apt-get install lsb-core lib32stdc++6
查看版本
arm-linux-gnueabihf-gcc -v
出问题一直报错说找不到arm-linux-gnueabihf-gcc,执行指令重新安装gcc
sudo apt install gcc-arm-linux-gnueabihf
具体情况:
编译正点原子修改后的uboot时没问题,但是编译NXP官方的uboot时总是报错提示找不到arm-linux-gnueabihf-gcc,网上各种方法都试了没用
最后我注意到,编译正点原子的uboot时不需要sudo,但是编译NXP官方的uboot时需要sudo权限,唯一的差别就是这里,于是按照网上说的进入root模式,添加环境变量,重启,编译还是不行
最后,执行指令重新安装gcc编译工具,然后查看版本时发现版本号与上面的版本号不一致了,并且上面安装的gcc已经没用了,修改文件路径也没影响了
等于说,又重新安装了一个gcc。。。。
Ubuntu和Windows文件互传
Ubuntu中TFTP下载配置
安装
sudo apt-get install vsftpd
异常处理(unbale to locate package vsftpd)
更新apt-get
sudo apt-get update
异常处理(VIM的清除键和Del等键功能错位)
卸载VIM重新安装
sudo apt-get remove vim-command
sudo apt-get install vim
配置
打开/etc/vsftpd.conf
sudo vi /etc/vsftpd.conf
修改以下内容:
local_enable=YES write_enable=YES
重启FTP
sudo service vsftpd restart
安装VSCode
执行指令安装
sudo dpkg -i code_1.35.3-1552606978_amd64.deb
Windows和Ubuntu之间复制粘贴
执行指令
sudo apt-get update
sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools-desktop
reboot
遇到的问题
- SD卡读卡器不能识别
- 设置USB兼容性为3.0
- 卸载重装VMware
- 编辑->首选项->usb 中设置链接USB后进行的操作