现在我直接从 https://whycan.com/t_6440.html 这里下载了
LogPI 发布的帖子
-
repo克隆D1-H_Tina_Open v2.0卡住
mod@arch tina-d1-h $ ./repo sync Fetching project lichee/linux-5.4 Fetching project lichee/brandy-2.0/u-boot-2018 Fetching projects: 11% (2/17) Fetching project product/tina/scripts Fetching projects: 17% (3/17) Fetching project product/tina/target Fetching projects: 23% (4/17) Fetching project lichee/brandy-2.0/spl Fetching projects: 29% (5/17) Fetching project lichee/device/config/common Fetching projects: 35% (6/17) Fetching project product/tina/dl Fetching projects: 41% (7/17) Fetching project product/tina/config Fetching projects: 47% (8/17) Fetching project lichee/device/config/d1s Fetching projects: 52% (9/17) Fetching project lichee/brandy-2.0/opensbi Fetching projects: 58% (10/17) Fetching project product/tina/prebuilt Fetching projects: 64% (11/17) Fetching project product/tina/tools Fetching projects: 70% (12/17) Fetching project lichee/device/config/d1 Fetching projects: 76% (13/17) Fetching project product/tina/build Fetching projects: 82% (14/17) Fetching project product/tina/package Fetching projects: 88% (15/17) Fetching project lichee/brandy-2.0/tools remote: Counting objects: 23, done. remote: Compressing objects: 100% (22/22), done.
环境都是严格按照官方配的。前面的都正常,打印完remote: Compressing objects: 100% (22/22), done.就卡住了,等了很长时间,没有任何输出,也没有报错信息。各位大佬,这个是什么问题呀?
-
回复: 烧录D1固件到TF卡时出现错误
我也遇到了这个问题,先用这个工具先格式化一下
https://bbs.aw-ol.com/topic/103/linux下格式化sd卡脚本工具 -
linux下格式化SD卡脚本工具
#!/bin/bash function pt_error() { echo -e "\033[1;31mERROR: $*\033[0m" } function pt_warn() { echo -e "\033[1;31mWARN: $*\033[0m" } function pt_info() { echo -e "\033[1;32mINFO: $*\033[0m" } function install_package() { PACKAGE=${1} if dpkg -s ${PACKAGE} 2>&1 | grep "not installed" > /dev/null; then apt-get install ${PACKAGE} --force-yes -y fi } if [ $UID -ne 0 ] then pt_error "Please run as root." exit fi if [ $# -ne 1 ]; then pt_error "Usage:./format_sd.sh device" exit 1 fi case $1 in /dev/sd[a-z] | /dev/loop[0-9] | /dev/mmcblk1) if [ ! -e $1 ]; then pt_error "$1 does not exist." exit 1 fi DEV_NAME=`basename $1` BLOCK_CNT=`cat /sys/block/${DEV_NAME}/size` ;;& /dev/sd[a-z]) DEV_PART_NAME=${DEV_NAME}1 REMOVABLE=`cat /sys/block/${DEV_NAME}/removable` ;; /dev/mmcblk1 | /dev/loop[0-9]) DEV_PART_NAME=${DEV_NAME}p1 REMOVABLE=1 ;; *) pt_error "Unsupported SD reader" exit 0 esac if [ $? -ne 0 ]; then pt_error "Error: Can't find device ${DEV_NAME}" exit 1 fi if [ ${BLOCK_CNT} -le 0 ]; then pt_error "Error: NO media found in card reader." exit 1 fi if [ ${BLOCK_CNT} -gt 64000000 ]; then pt_error "Error: Block device size (${BLOCK_CNT}) is too large" exit 1 fi install_package dosfstools umount /dev/${DEV_NAME}* >/dev/null 2>&1 pt_info "formatting ${DEV_NAME}, please wait..." dd if=/dev/zero of=/dev/${DEV_NAME} bs=16M count=4 sync fdisk /dev/$DEV_NAME <<EOF o n p w EOF mkfs.vfat /dev/${DEV_PART_NAME} -n SD sync pt_info "format success."
phoenixCard格式化失败,可用该脚本先格式化SD卡。使用方法:
sudo ./format_sd.sh 你的盘符
eg:
mod@archlinux sdcard $ sudo ./format_sd.sh /dev/sdb INFO: formatting sdb, please wait... 记录了4+0 的读入 记录了4+0 的写出 67108864字节(67 MB,64 MiB)已复制,15.2602 s,4.4 MB/s 欢迎使用 fdisk (util-linux 2.36.2)。 更改将停留在内存中,直到您决定将更改写入磁盘。 使用写入命令前请三思。 设备不包含可识别的分区表。 创建了一个磁盘标识符为 0x00c807cc 的新 DOS 磁盘标签。 命令(输入 m 获取帮助):创建了一个磁盘标识符为 0x476e6317 的新 DOS 磁盘标签。 命令(输入 m 获取帮助):分区类型 p 主分区 (0 primary, 0 extended, 4 free) e 扩展分区 (逻辑分区容器) 选择 (默认 p):分区号 (1-4, 默认 1): 第一个扇区 (2048-60751871, 默认 2048): 最后一个扇区,+/-sectors 或 +size{K,M,G,T,P} (2048-60751871, 默认 60751871): 创建了一个新分区 1,类型为“Linux”,大小为 29 GiB。 命令(输入 m 获取帮助):分区表已调整。 将调用 ioctl() 来重新读分区表。 正在同步磁盘。 mkfs.fat 4.2 (2021-01-31) INFO: format success.
-
回复: PhoenixSuit连接不上设备
@March
1、驱动问题
shift + 鼠标右键打开powershell
运行可以看到安装的信息(base) PS C:\Users\biac\Downloads\全志USB烧录驱动20201229> .\install.bat C:\Users\biac\Downloads\全志USB烧录驱动20201229>InstallUSBDrv.exe .\UsbDriver\usbdrv.inf
安装成没成功可以在设备管理器里看一下
2、如果是板子里面的镜像坏了的话,需要安装fel按键上电才能检测得到
参考按住fel按键烧写 -
D1哪吒开发板支持nfs
- 配置内核
(如果该terminal编译过SDK,下面两步可以省略) source build/envsetup.sh lunch d1_nezha-tina croot make kernel_menuconfig
选择File System
选择Network File System,并作如下配置
重新编译内核make -j4 pack
- 挂载文件系统
查看支持的文件系统,发现多了两个nfs
root@TinaLinux:/# cat /proc/filesystems nodev sysfs nodev tmpfs nodev bdev nodev proc nodev devtmpfs nodev configfs nodev debugfs nodev sockfs nodev pipefs nodev ramfs nodev rpc_pipefs nodev devpts ext3 ext2 ext4 squashfs vfat nodev nfs nodev nfs4 nodev overlay nodev ubifs fuseblk nodev fuse nodev fusectl nodev functionfs
挂载
mount -o nolock -t nfs 192.168.100.113:/home/mod/code/linux/nfs /mnt/app root@TinaLinux:/# ls /mnt/app/ MNN ncnn opencl opencv tensorflow
收工
-
回复: 全志在线 D1哪吒开发板开机连接wifi热点, 启动 sshd 服务
root@TinaLinux:/# /etc/init.d/S51dropbear restart Stopping dropbear sshd: FAIL Starting dropbear sshd: start-stop-daemon: unrecognized option '--exec'
需要将--exec改为-x
-
连接wifi无法ping通
获取ip地址
root@TinaLinux:/# udhcpc -i wlan0 udhcpc: started, v1.27.2 udhcpc: sending discover udhcpc: sending select for 192.168.100.243 udhcpc: lease of 192.168.100.243 obtained, lease time 43200 udhcpc: ifconfig wlan0 192.168.100.243 netmask 255.255.255.0 broadcast 192.168.100.255 udhcpc: setting default routers: 192.168.100.1
root@TinaLinux:/# ifconfig br-lan Link encap:Ethernet HWaddr 3E:89:D0:BD:72:36 inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fdb2:bc1c:1d47::1/60 Scope:Global UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:130 (130.0 B) eth0 Link encap:Ethernet HWaddr 3E:89:D0:BD:72:36 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:62 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:4290 errors:0 dropped:0 overruns:0 frame:0 TX packets:4290 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:335040 (327.1 KiB) TX bytes:335040 (327.1 KiB) wlan0 Link encap:Ethernet HWaddr 78:99:9C:CF:40:46 inet addr:192.168.100.243 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::7a99:9cff:fecf:4046/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2222 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:740457 (723.1 KiB) TX bytes:5166 (5.0 KiB)
其中wlan0得ip地址确实配置上了,但是无法ping同。使用有线网是能ping通的。使用的镜像版本是通过v1.01的SDK编译的。
-
回复: 【免签NDA直接下】D1 Tina SDK v1.0正式释放!深入了解RISC-V的每一个DNA!
@kunyao 我也遇到了同样的问题.公钥是添加了的,如果公钥没添加的话,连repo这个工具都下载不了.
mod@mod tina-d1-open $ repo init -u ssh://LogPI@sdk.allwinnertech.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-open.xml Get ssh://LogPI@sdk.allwinnertech.com/git_repo/repo.git remote: Counting objects: 4032, done. remote: Compressing objects: 100% (1262/1262), done. remote: Total 4032 (delta 2733), reused 3932 (delta 2709) 接收对象中: 100% (4032/4032), 978.00 KiB | 5.15 MiB/s, 完成. 处理 delta 中: 100% (2733/2733), 完成. 来自 ssh://sdk.allwinnertech.com/git_repo/repo * [新分支] master -> origin/master * [新标签] v1.0 -> v1.0 * [新标签] v1.0.1 -> v1.0.1 * [新标签] v1.0.2 -> v1.0.2 * [新标签] v1.0.3 -> v1.0.3 * [新标签] v1.0.4 -> v1.0.4 * [新标签] v1.0.5 -> v1.0.5 * [新标签] v1.0.6 -> v1.0.6 * [新标签] v1.0.7 -> v1.0.7 * [新标签] v1.0.8 -> v1.0.8 * [新标签] v1.0.9 -> v1.0.9 * [新标签] v1.1 -> v1.1 * [新标签] v1.10.0 -> v1.10.0 * [新标签] v1.10.1 -> v1.10.1 * [新标签] v1.10.2 -> v1.10.2 * [新标签] v1.10.3 -> v1.10.3 * [新标签] v1.10.4 -> v1.10.4 * [新标签] v1.11.0 -> v1.11.0 * [新标签] v1.11.1 -> v1.11.1 * [新标签] v1.12.0 -> v1.12.0 * [新标签] v1.12.1 -> v1.12.1 * [新标签] v1.12.10 -> v1.12.10 * [新标签] v1.12.11 -> v1.12.11 * [新标签] v1.12.12 -> v1.12.12 * [新标签] v1.12.13 -> v1.12.13 * [新标签] v1.12.14 -> v1.12.14 * [新标签] v1.12.15 -> v1.12.15 * [新标签] v1.12.16 -> v1.12.16 * [新标签] v1.12.17 -> v1.12.17 * [新标签] v1.12.18 -> v1.12.18 * [新标签] v1.12.19 -> v1.12.19 * [新标签] v1.12.2 -> v1.12.2 * [新标签] v1.12.20 -> v1.12.20 * [新标签] v1.12.21 -> v1.12.21 * [新标签] v1.12.22 -> v1.12.22 * [新标签] v1.12.23 -> v1.12.23 * [新标签] v1.12.24 -> v1.12.24 * [新标签] v1.12.25 -> v1.12.25 * [新标签] v1.12.26 -> v1.12.26 * [新标签] v1.12.27 -> v1.12.27 * [新标签] v1.12.28 -> v1.12.28 * [新标签] v1.12.29 -> v1.12.29 * [新标签] v1.12.3 -> v1.12.3 * [新标签] v1.12.3.1 -> v1.12.3.1 * [新标签] v1.12.30 -> v1.12.30 * [新标签] v1.12.30.1 -> v1.12.30.1 * [新标签] v1.12.31 -> v1.12.31 * [新标签] v1.12.32 -> v1.12.32 * [新标签] v1.12.33 -> v1.12.33 * [新标签] v1.12.34 -> v1.12.34 * [新标签] v1.12.35 -> v1.12.35 * [新标签] v1.12.36 -> v1.12.36 * [新标签] v1.12.37 -> v1.12.37 * [新标签] v1.12.4 -> v1.12.4 * [新标签] v1.12.5 -> v1.12.5 * [新标签] v1.12.6 -> v1.12.6 * [新标签] v1.12.7 -> v1.12.7 * [新标签] v1.12.8 -> v1.12.8 * [新标签] v1.12.9 -> v1.12.9 * [新标签] v1.2 -> v1.2 * [新标签] v1.3 -> v1.3 * [新标签] v1.3.1 -> v1.3.1 * [新标签] v1.3.2 -> v1.3.2 * [新标签] v1.4 -> v1.4 * [新标签] v1.4.1 -> v1.4.1 * [新标签] v1.4.2 -> v1.4.2 * [新标签] v1.4.3 -> v1.4.3 * [新标签] v1.4.4 -> v1.4.4 * [新标签] v1.5 -> v1.5 * [新标签] v1.5.1 -> v1.5.1 * [新标签] v1.6 -> v1.6 * [新标签] v1.6.1 -> v1.6.1 * [新标签] v1.6.10 -> v1.6.10 * [新标签] v1.6.10.1 -> v1.6.10.1 * [新标签] v1.6.10.2 -> v1.6.10.2 * [新标签] v1.6.2 -> v1.6.2 * [新标签] v1.6.3 -> v1.6.3 * [新标签] v1.6.4 -> v1.6.4 * [新标签] v1.6.5 -> v1.6.5 * [新标签] v1.6.6 -> v1.6.6 * [新标签] v1.6.7 -> v1.6.7 * [新标签] v1.6.7.1 -> v1.6.7.1 * [新标签] v1.6.7.2 -> v1.6.7.2 * [新标签] v1.6.7.3 -> v1.6.7.3 * [新标签] v1.6.7.4 -> v1.6.7.4 * [新标签] v1.6.7.5 -> v1.6.7.5 * [新标签] v1.6.8 -> v1.6.8 * [新标签] v1.6.8.1 -> v1.6.8.1 * [新标签] v1.6.8.10 -> v1.6.8.10 * [新标签] v1.6.8.11 -> v1.6.8.11 * [新标签] v1.6.8.2 -> v1.6.8.2 * [新标签] v1.6.8.3 -> v1.6.8.3 * [新标签] v1.6.8.4 -> v1.6.8.4 * [新标签] v1.6.8.5 -> v1.6.8.5 * [新标签] v1.6.8.6 -> v1.6.8.6 * [新标签] v1.6.8.7 -> v1.6.8.7 * [新标签] v1.6.8.8 -> v1.6.8.8 * [新标签] v1.6.8.9 -> v1.6.8.9 * [新标签] v1.6.9 -> v1.6.9 * [新标签] v1.6.9.1 -> v1.6.9.1 * [新标签] v1.6.9.2 -> v1.6.9.2 * [新标签] v1.6.9.3 -> v1.6.9.3 * [新标签] v1.6.9.4 -> v1.6.9.4 * [新标签] v1.6.9.5 -> v1.6.9.5 * [新标签] v1.6.9.6 -> v1.6.9.6 * [新标签] v1.6.9.7 -> v1.6.9.7 * [新标签] v1.6.9.8 -> v1.6.9.8 * [新标签] v1.7 -> v1.7 * [新标签] v1.7.1 -> v1.7.1 * [新标签] v1.7.2 -> v1.7.2 * [新标签] v1.7.3 -> v1.7.3 * [新标签] v1.7.3.1 -> v1.7.3.1 * [新标签] v1.7.4 -> v1.7.4 * [新标签] v1.7.4.1 -> v1.7.4.1 * [新标签] v1.7.4.2 -> v1.7.4.2 * [新标签] v1.7.4.3 -> v1.7.4.3 * [新标签] v1.7.5 -> v1.7.5 * [新标签] v1.7.6 -> v1.7.6 * [新标签] v1.7.6.1 -> v1.7.6.1 * [新标签] v1.7.7 -> v1.7.7 * [新标签] v1.7.7.1 -> v1.7.7.1 * [新标签] v1.7.7.2 -> v1.7.7.2 * [新标签] v1.7.7.3 -> v1.7.7.3 * [新标签] v1.7.7.4 -> v1.7.7.4 * [新标签] v1.7.7.5 -> v1.7.7.5 * [新标签] v1.7.7.6 -> v1.7.7.6 * [新标签] v1.7.8 -> v1.7.8 * [新标签] v1.7.8.1 -> v1.7.8.1 * [新标签] v1.7.8.2 -> v1.7.8.2 * [新标签] v1.8.0 -> v1.8.0 * [新标签] v1.8.1 -> v1.8.1 * [新标签] v1.8.2 -> v1.8.2 * [新标签] v1.9.0 -> v1.9.0 * [新标签] v1.9.1 -> v1.9.1 * [新标签] v1.9.2 -> v1.9.2 * [新标签] v1.9.3 -> v1.9.3 * [新标签] v1.9.4 -> v1.9.4 * [新标签] v1.9.5 -> v1.9.5 * [新标签] v1.9.6 -> v1.9.6 warning: 'ssh://LogPI@sdk.allwinnertech.com/git_repo/repo.git' does not look like a git-repo repository, is REPO_URL set correctly? Get ssh://LogPI@sdk.allwinnertech.com/git_repo/D1_Tina_Open/manifest.git fatal: '/git_repo/D1_Tina_Open/manifest.git' does not appear to be a git repository fatal: 无法读取远程仓库。 请确认您有正确的访问权限并且仓库存在。