参考荔枝派Zero文章; 荔枝派Zero开箱指南
1. 先编译出u-boot, Linux, dtb 文件, 用buildroot编译出根文件系统.
2. 烧录TF卡,打开gparted
1) 删除TF卡所有分区
2) 将uboot写入到sd卡8k偏移处。
sudo dd if=u-boot-sunxi-with-spl_480800.bin of=/dev/sdb bs=1024 seek=8
3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
3. TF卡插入荔枝派Zero开发板, 插入串口, 启动。
修改 include/configs/sun8i.h
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mmcblk0p2 earlyprintk rw"
#define CONFIG_BOOTCOMMAND \
"setenv bootm_boot_mode sec; " \
"load mmc 0:1 0x41000000 zImage; " \
"load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb;" \
"bootz 0x41000000 - 0x41800000; "
这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd
参考网址: 荔枝派Zero V3s开发板入坑教程
Bilibili视频分享地址:
https://www.bilibili.com/video/av16458056/
以下由 @哇酷小二 2020-06-02 更新:
-------------------------------------------
现在已有脚本打包方法, 可以不用上面的 gparted 图形界面操作打包, 参考下面
链接1: 分享全志主线u-boot/linux 打包 TF/SD/SDNAND 镜像脚本
链接2: 传一个小智X3卡片电脑和开发板的TF卡镜像打包脚本
链接3: 发个很久之前写的一键licheepi nano的环境部署,编译打包脚本
在线
具体写写 怎么先编译出u-boot, Linux, dtb 文件, 用buildroot编译出根文件系统
离线
具体写写 怎么先编译出u-boot, Linux, dtb 文件, 用buildroot编译出根文件系统
新鲜出炉: 荔枝派Zero V3s开发板入坑教程
离线
Error mounting /dev/sdb2 at /media/esp8266/7a347851-8109-4850-a0f9-b2d810fbc997: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/esp8266/7a347851-8109-4850-a0f9-b2d810fbc997"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
请教:
我的TF卡报这个错误,怎么解决
使用的vbox虚拟机lubuntu14.04,安装了gparted,按照教程分区成功后分区前边有个叹号,重新插入SD卡报错
最近编辑记录 ljbfly (2017-12-11 09:39:28)
离线
我用楼主的方法用楼主的固件,最后Linux跑起来直接panic然后不停reboot,怎么破?
离线
为什么我下载文件后,lcd没有显示。控台输出正常,背光控制脚没有15v电压?是什么原因,我烧写了一个flash的程序,背光正常量的,电路确定正常,通电时候屏幕会闪烁一下,背光就灭了
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
离线
在线
终于好了
LCD panel backlight pwm is inverted
选中这个就可以
谢谢
离线
晕哥,我用你在一楼编译好的固件制作好了TF卡,
可以联网,zero板和ubuntu可以相互ping 通
遇到的问题是,不能通过SSH登陆zero,客户端用的putty
这会是什么原因,是固件没有SSH服务吗
离线
晕哥,我用你在一楼编译好的固件制作好了TF卡,
可以联网,zero板和ubuntu可以相互ping 通
遇到的问题是,不能通过SSH登陆zero,客户端用的putty
这会是什么原因,是固件没有SSH服务吗
可能没有 ssh 服务, 可以自己编译一个 dropbear 进去, 或者看看busybox 里面有没有自带 ssh 服务器.
离线
Jmhh247 说:晕哥,我用你在一楼编译好的固件制作好了TF卡,
可以联网,zero板和ubuntu可以相互ping 通
遇到的问题是,不能通过SSH登陆zero,客户端用的putty
这会是什么原因,是固件没有SSH服务吗
可能没有 ssh 服务, 可以自己编译一个 dropbear 进去, 或者看看busybox 里面有没有自带 ssh 服务器.
是的, 没有 ssh service,
自己编译一个 dropbear: https://github.com/mkj/dropbear
打包进去就可以了
开机启动运行把dropbear 命令放这里面: /etc/init.d/
在线
trigger 说:Jmhh247 说:晕哥,我用你在一楼编译好的固件制作好了TF卡,
可以联网,zero板和ubuntu可以相互ping 通
遇到的问题是,不能通过SSH登陆zero,客户端用的putty
这会是什么原因,是固件没有SSH服务吗
可能没有 ssh 服务, 可以自己编译一个 dropbear 进去, 或者看看busybox 里面有没有自带 ssh 服务器.
是的, 没有 ssh service,
自己编译一个 dropbear: https://github.com/mkj/dropbear
打包进去就可以了
开机启动运行把dropbear 命令放这里面: /etc/init.d/
明白了,谢谢晕哥!
另外问下,论坛上收到对自己的回复,没新信息提醒吗。。。好像只能随时关注帖子
离线
@Jmhh247 是的, 抱歉现在还没有通知功能, 计划后续加上邮件和手机短信功能, 目前我个人精力和能力都有限, 等以后人气好了希望可以全职经营网站。
慢慢来,加油,加油!
离线
晕哥 说:@Jmhh247 是的, 抱歉现在还没有通知功能, 计划后续加上邮件和手机短信功能, 目前我个人精力和能力都有限, 等以后人气好了希望可以全职经营网站。
慢慢来,加油,加油!
感谢支持, 刚刚研究了一下, 搞定了 EMAIL 订阅的问题, 初步验证是可以用的.
按上面的链接, 可以订阅主题的所有回复, 如果该主题有新帖子,会通过EMAIL推送.
在线
Jmhh247 说:晕哥 说:@Jmhh247 是的, 抱歉现在还没有通知功能, 计划后续加上邮件和手机短信功能, 目前我个人精力和能力都有限, 等以后人气好了希望可以全职经营网站。
慢慢来,加油,加油!
https://whycan.cn/files/members/3/QQ20190105133751.png
感谢支持, 刚刚研究了一下, 搞定了 EMAIL 订阅的问题, 初步验证是可以用的.
按上面的链接, 可以订阅主题的所有回复, 如果该主题有新帖子,会通过EMAIL推送.
太好啦,晕哥真是神速!
建议晕哥,把这个功能另开一贴置顶,让有需要坛友都能看到。
离线
晕哥,我又来了(新手上路,问题多。。。=D)
我用帖子里的固件,可以用 mplayer 播放mp3, mp4,以及avi,播放这些除了没声音(用的耳机接 ZERO DOCK上面),都正常。
我想问下,这个固件是不支持声音的吗
离线
固件本身是支持声音的, 应该是软件没有对接好, 你用 tinymix + tinyplay 是可以出声音的。
晕哥,我在这个帖子里看到你们的讨论了 https://whycan.cn/t_489.html
里面有提到tinymix 和 tinyplay
我用下面的命令的测试,
./tinymix set 1 63
./tinymix set 2 1
开发板找不到 tinymix , tinyplay ,这个固件是不是没有包含它们,需要自己移植上去?
离线
嗯, 记得我也没有找到, 自己编译重新打包进去就好了。
如果执行出错那要尝试静态链接.
-static
离线
嗯, 记得我也没有找到, 自己编译重新打包进去就好了。
如果执行出错那要尝试静态链接.
-static
你也是用这个帖子的固件吗
我回头编译试试
离线
@晕哥
晕哥,我之前配置好的内核和根文件系统,之前烧进tft卡能够跑起来,但是现在我重新烧了之后,一直出现如下问题,解决不了,请晕哥帮忙分析下原因:
egulator
[ 1.284498] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.290342] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.299464] hub 3-0:1.0: USB hub found
[ 1.303332] hub 3-0:1.0: 1 port detected
[ 1.309655] using random self ethernet address
[ 1.314111] using random host ethernet address
[ 1.319705] usb0: HOST MAC 6a:d5:57:40:e4:d4
[ 1.324025] usb0: MAC 0e:cd:1a:52:8f:7c
[ 1.328015] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.335495] g_cdc gadget: g_cdc ready
[ 1.341732] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.350212] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:15 UTC (15)
[ 1.358525] vcc5v0: disabling
[ 1.361499] ALSA device list:
[ 1.364463] #0: V3s Audio Codec
[ 1.369788] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.379157] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.406827] EXT4-fs (mmcblk0p2): recovery complete
[ 1.411647] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.419913] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.439708] devtmpfs: mounted
[ 1.443910] Freeing unused kernel memory: 1024K
[ 1.468423] Starting init: /sbin/init exists but couldn't execute it (error -5)
[ 1.477461] Starting init: /bin/sh exists but couldn't execute it (error -5)
[ 1.484519] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 1.498672] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #14
[ 1.506055] Hardware name: Allwinner sun8i Family
[ 1.510793] [<c010e4c4>] (unwind_backtrace) from [<c010b21c>] (show_stack+0x10/0x14)
[ 1.518537] [<c010b21c>] (show_stack) from [<c066afdc>] (dump_stack+0x84/0x98)
[ 1.525764] [<c066afdc>] (dump_stack) from [<c011b568>] (panic+0xdc/0x248)
[ 1.532643] [<c011b568>] (panic) from [<c067d9f0>] (kernel_init+0x100/0x110)
[ 1.539688] [<c067d9f0>] (kernel_init) from [<c0107578>] (ret_from_fork+0x14/0x3c)
[ 1.547262] Rebooting in 5 seconds..
离线
文件系统挂载成功, 但是你的文件系统出了问题, 测试了几个文件都没有执行成功.
[ 1.468423] Starting init: /sbin/init exists but couldn't execute it (error -5)
[ 1.477461] Starting init: /bin/sh exists but couldn't execute it (error -5)
建议换卡重烧试一试。
在线
@晕哥
晕哥,我换了两张8G的tft卡,重新烧了一遍还是出现刚才那个问题,之前使用的是1G的tft卡,想问下v3s开发板对tft卡的容量也有要求的呢?还是由其他问题引起的呢?
离线
[ 1.468423] Starting init: /sbin/init exists but couldn't execute it (error -5)
[ 1.477461] Starting init: /bin/sh exists but couldn't execute it (error -5)
@千石级灯
从这log看, 你的文件系统挂在成功,并且已经找到文件,当时执行失败了.
你到ubuntu挂载tf卡, 检查文件的 md5 码是不是和原来的文件一致,
并且检查文件是否有执行属性.
在线
@晕哥
晕哥,我查看了下对应的那两个文件是有执行权限的,但是我想问下怎么可以查看到md5码呢?
离线
@晕哥
晕哥,我查看了下init 和sh 都有执行权限以及他们的md5码都与拷贝的相同,但是刚才重新拷贝一次之后出现了如下错误:
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
3962304 bytes read in 205 ms (18.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
411349 bytes read in 44 ms (8.9 MiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe4f ... OK
fdt_find_or_add_subnode: memory: FDT_ERR_BADSTRUCTURE
ERROR: arch-specific fdt fixup failed
- must RESET the board to recover.
FDT creation failed! hanging...### ERROR ### Please RESET the board ###
这个又是什么错误来的?
离线
@晕哥
晕哥,不知是不是我使用完命令gparted重新分配好分区之后,我使用df命令,出现如下显示:
/dev/sdb2 867520 888 805348 1% /media/gec/40c75af8-c51e-46dc-a621-bf1f59fa18e7
/dev/sdb1 65390 6 65384 1% /media/gec/88EE-55E4
以前我烧写前重新分区后,/de/sdb1的情况是0%的,但是这几次都一直是1%,换了两张卡都是这种显示,不知是不是这个影响了我烧写内核时出现错误,跑不起来的原因呢?
离线
@晕哥
晕哥,我昨天发现了我可能是我的跟文件太大的原因,在拷贝时出现错误了,我对sd卡覆盖拷贝多一次时,又可以正常运行了。请问下这个是什么原因导致的呢?有时我也发现了md5码会出现跟原来的不一致。
离线
@晕哥
晕哥,我昨天发现了我可能是我的跟文件太大的原因,在拷贝时出现错误了,我对sd卡覆盖拷贝多一次时,又可以正常运行了。请问下这个是什么原因导致的呢?有时我也发现了md5码会出现跟原来的不一致。
根文件系统的第二个分区? 太大?是 ext4 文件系统吗?文件系统多大?分区多大?
离线
@晕哥
晕哥,我的U盘ext4分区是7G,根文件系统rootfs.rar大小是144M
离线
jimmy 说:嗯, 记得我也没有找到, 自己编译重新打包进去就好了。
如果执行出错那要尝试静态链接.
-static
你也是用这个帖子的固件吗
我回头编译试试
tinyalsa,测试正常,上传一下静态编译的固件,给有需要的人测试。
参考这两个帖子:https://whycan.cn/t_490.html https://whycan.cn/t_489.html
移植方法:
1.把bin里面的文件,复制到开发板的根文件系统的bin目录下;
2.把lib里面的文件,复制到开发板的根文件系统的lib目录下。
使用示例:
tinymix set 1 20 设置音量
tinymix set 2 1
tinymix contents
tinyplay xxx.wav
注意事项(重要):
使用耳机的话,设置声音那里,最好设小一点,建议设30以下。。。
一开始,我照搬大家,设成63,然后耳机响的那一刻,我都想哭了。。。
编辑说明:第一次上传文件,忘添加名称了,现在好了
最近编辑记录 Jmhh247 (2019-01-09 10:10:36)
离线
trigger 说:Jmhh247 说:晕哥,我用你在一楼编译好的固件制作好了TF卡,
可以联网,zero板和ubuntu可以相互ping 通
遇到的问题是,不能通过SSH登陆zero,客户端用的putty
这会是什么原因,是固件没有SSH服务吗
可能没有 ssh 服务, 可以自己编译一个 dropbear 进去, 或者看看busybox 里面有没有自带 ssh 服务器.
是的, 没有 ssh service,
自己编译一个 dropbear: https://github.com/mkj/dropbear
打包进去就可以了
开机启动运行把dropbear 命令放这里面: /etc/init.d/
编译了 dropbear,用这个帖子里的固件测试正常,可以用putty通过ssh登陆开发板。
现在上传一下我编译好的 dropbear,给有需要的人测试。
移植方法:
1.首先解压
tar -xzvf dropbear_bin.tar.gz
2.移植到开发板
>进入dropbear目录,把bin 和 sbin目录里的文件,都复制到开发板根文件系统的/bin目录里;
>进入zlib目录,把lib目录里的libz.so,libz.so.1,libz.so.1.2.11,都复制到开发板根文件系统的/lib目录里;
3.设置开发板
cd /etc
mkdir dropbear
cd dropbear/
dropbearkey -t rsa -f dropbear_rsa_host_key
dropbearkey -t dss -f dropbear_dss_host_key
4.启动dropbear
dropbear
到这里,如果一切正常,就可以通过ssh登陆开发板啦
注意事项:
如果登陆出现:
login as: root
root@192.168.101.90's password:
Access denied
root@192.168.101.90's password:
Access denied
这可能是因为ssh登陆,需要账户必须有密码, 而这个固件默认无密码。
为账户增加密码即可,使用命令:
passwd
周末如果有时间,可以开帖详细记录下编译dropbear的过程。
离线
修改 include/configs/sun8i.h
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mmcblk0p2 earlyprintk rw"
#define CONFIG_BOOTCOMMAND \
"setenv bootm_boot_mode sec; " \
"load mmc 0:1 0x41000000 zImage; " \
"load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb;" \
"bootz 0x41000000 - 0x41800000; "
-----------------------------------------------------------------------
LZ的这个 用SD卡后 CONFIG_BOOTARGS中的mtdparts=spi32766.0?
这个是否有错?如果用SD卡,不用后面的文件系统,这个mt-id 怎么获取?
离线
没有错,mtdparts是原来给flash驱动生成分区用的,你可以删除。
只用sd卡删除这个mtdparts 也没问题。
假如,我不在SD中中文件系统,就想和SPI的FLASH一样用这个mtdparts.
这个给参数该怎么设置?
离线
在线
john78 说:晕哥 说:没有错,mtdparts是原来给flash驱动生成分区用的,你可以删除。
只用sd卡删除这个mtdparts 也没问题。
假如,我不在SD中中文件系统,就想和SPI的FLASH一样用这个mtdparts.
这个给参数该怎么设置?
不用 sd卡,只用 flash?
不用FLASH,用SD卡,直接读写,不用分区(不想用户在电脑上看到文件系统)
离线
用 ext4 文件系统,对小白来说基本没办法打开了
离线
只找到这个说明
mtdparts
mtdparts=fc000000.nor_flash:1920k(linux),128k(fdt),20M(ramdisk),4M(jffs2),38272k(user),256k(env),384k(uboot)
要想这个参数起作用,内核中的mtd驱动必须要支持,即内核配置时需要选上Device Drivers ---> Memory Technology Device (MTD) support ---> Command line partition table parsing
mtdparts的格式如下:
mtdparts=<mtddef>[;<mtddef]
<mtddef> := <mtd-id>:<partdef>[,<partdef>]
<partdef> := <size>[@offset][<name>][ro]
<mtd-id> := unique id used in mapping driver/device
<size> := standard linux memsize OR "-" to denote all remaining space
<name> := (NAME)
因此你在使用的时候需要按照下面的格式来设置:
mtdparts=mtd-id:<size1>@<offset1>(<name1>),<size2>@<offset2>(<name2>)
这里面有几个必须要注意的:
a. mtd-id 必须要跟你当前平台的flash的mtd-id一致,不然整个mtdparts会失效 怎样获取到当前平台的flash的mtd-id?
在bootargs参数列表中可以指定当前flash的mtd-id,如指定 mtdids:nand0=gen_nand.1,前面的nand0则表示第一个flash
b. size在设置的时候可以为实际的size(xxM,xxk,xx),也可以为'-'这表示剩余的所有空间。
相关信息可以查看drivers/mtd/cmdlinepart.c中的注释找到相关描述。
----------------------------------------------------------------------------------------------------------------------------
a. mtd-id 必须要跟你当前平台的flash的mtd-id一致,不然整个mtdparts会失效 怎样获取到当前平台的flash的mtd-id?----- 不明白
离线
@john78 你是想把 sd 卡 当 flash 用?
是的,spi的flash容量小,实在不行就老实用文件系统了
离线
各位达人,我Linux新手,下载了V3s_TFCard,按照步骤写好TF卡,但好像启动不了。
提示信息如下:
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000194] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000431] Console: colour dummy device 80x30
[ 0.000468] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000485] pid_max: default: 32768 minimum: 301
[ 0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000625] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001233] CPU: Testing write buffer coherency: ok
[ 0.001608] /cpus/cpu@0 missing clock-frequency property
[ 0.001633] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002074] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002255] Hierarchical SRCU implementation.
[ 0.002749] smp: Bringing up secondary CPUs ...
[ 0.002764] smp: Brought up 1 node, 1 CPU
[ 0.002774] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002781] CPU: All CPU(s) started in SVC mode.
[ 0.003551] devtmpfs: initialized
[ 0.006692] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006994] clocksource: jiffies: mask: 0xffffffff max_cyc[ 0.896270] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.0[ 1.011370] hub 2-0:1.0: USB hub found
[ 1.015211] hub 2-0:1.0: 1 port detected
[ 1.022872] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032488] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041516] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048423] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052977] i2c /dev entries driver
[ 1.058015] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067528] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136300] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.184441] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.194788] mmc0: new high speed SD card at address b368
[ 1.200626] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.207096] usbcore: registered new interface driver usbhid
[ 1.212673] usbhid: USB HID core driver
[ 1.217474] mmcblk0: mmc0:b368 NCard 948 MiB
[ 1.223956] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.232014] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.238509] mmcblk0: p1 p2
[ 1.246742] NET: Registered protocol family 17
[ 1.251321] Key type dns_resolver registered
[ 1.255737] Registering SWP/SWPB emulation handler
[ 1.265108] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.275821] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.292132] Console: switching to colour frame buffer device 100x30
[ 1.304579] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.313166] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.324610] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.330462] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.339570] hub 3-0:1.0: USB hub found
[ 1.343436] hub 3-0:1.0: 1 port detected
[ 1.348767] using random self ethernet address
[ 1.353260] using random host ethernet address
[ 1.359873] usb0: HOST MAC 16:b7:19:bf:dd:37
[ 1.364189] usb0: MAC be:20:76:d4:fc:ad
[ 1.368196] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.375673] g_cdc gadget: g_cdc ready
[ 1.382070] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.390587] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:10 UTC (10)
[ 1.398919] vcc5v0: disabling
[ 1.401897] ALSA device list:
[ 1.404860] #0: V3s Audio Codec
[ 1.410433] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.419934] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.751275] random: crng init done
[ 2.069362] EXT4-fs (mmcblk0p2): recovery complete
[ 2.077323] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.085489] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.092928] devtmpfs: mounted
[ 2.097258] Freeing unused kernel memory: 1024K
mount: you must be root
mount: you must be root
mkdir: can't create directory '/dev/pts': Permission denied
mkdir: can't create directory '/dev/shm': Permission denied
mount: you must be root
hostname: sethostname: Operation not permitted
Starting logging: OK
Initializing random number generator... done.
Starting network: ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Operation not permitted
FAIL
can't open /dev/console: Permission denied
can't open /dev/console: Permission denied
离线
原来是步骤错了,先分区,再运行dd。
后面重新再做一次,先dd 再分区,可以启动。
离线
@晕哥
TF卡接口可以用SDC1那组吗?
离线
谢谢,非常感谢
离线
终于好了
LCD panel backlight pwm is inverted
选中这个就可以
谢谢
U-Boot SPL 2017.01-rc2-00057-g32ab180-dirty (Mar 11 2020 - 08:05:41)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2-00057-g32ab180-dirty (Mar 11 2020 - 08:05:41 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00057-g32ab180-dirty (Mar 11 2020 - 08:05:41 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
3929224 bytes read in 675 ms (5.6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
为啥我选中了,屏也点不亮呢,闪一下就gameover了
离线
有不明白之处请跟贴留言!
晕哥,我在其他帖子看到了用sd卡直接烧系统再在板子上启动
我看的教程:http://nano.lichee.pro/build_sys/onekey.html
里面镜像我也下了这个Nano_tf_800480.dd,烧进去了。但是我插进去在板子上启动的时候一直卡在
random :crng init done.
然后就动不了了。
这里,我也不懂什么问题...我在网上找说可能是分区的问题,但是不会解决。
离线
终于好了
LCD panel backlight pwm is inverted
选中这个就可以
谢谢
我也遇到了同样的问题,貌似不是这个原因,我重新做了一遍TF卡,就可以了,后来又烧写了2遍uboot,分别是选中 LCD panel backlight pwm is inverted 和没有选中,都一样,都可以点亮LCD,可能跟做卡有关系。
离线
晕哥,我又来了(新手上路,问题多。。。=D)
我用帖子里的固件,可以用 mplayer 播放mp3, mp4,以及avi,播放这些除了没声音(用的耳机接 ZERO DOCK上面),都正常。
我想问下,这个固件是不支持声音的吗
声音问题搞定了吗?
离线
关于分区建立的问题,为什么要创建2个分区,一个是放linux img + dtb,一个是放文件系统。难道是代码中分别找2个分区。
离线
按照晕哥的步骤做了,我的主机是Ubuntu16.04,用的是USB 的读卡器,TF卡是sandisk,16G
1.将TF卡分全部删除
2.sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.出现问题,GParted分区工具提示GPT 崩溃,继续流程
4.创建2个分区,一个32M,一个是剩下的全部,这个时候还是会提醒GPT崩溃,点击确定之后可以进行分区
5.将zimage和dtb文件拷贝到文件32M,另一个是将root.tar解压到15G的另一个分区。
以上步骤完成后,插入TF卡,没有任何的反应,怀疑是uboot没有烧进去。重复第2个步骤,然后出现找不到mmcblk2的log,VFS无法挂载
log如下:从下面的log看,
[ 1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[ 1.413788] Please append a correct "root=" boot option; here are the available partitions:
[ 1.422164] b300 15159296 mmcblk0
这个分区是mmcblk0,而启动命令参数是root=/dev/mmcblk0p2,难道需要改启动参数。但是我使用的晕哥的这个固件(uboot,zimage,dtb,rootfs)
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
GUID Partition Table Entry Array CRC is wrong: 0x9e95e65e != 0xb897ee45
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** Using Backup GPT ***
reading zImage
4016104 bytes read in 642 ms (6 MiB/s)
GUID Partition Table Entry Array CRC is wrong: 0x9e95e65e != 0xb897ee45
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** Using Backup GPT ***
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 28 ms (411.1 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000194] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000430] Console: colour dummy device 80x30
[ 0.000467] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000483] pid_max: default: 32768 minimum: 301
[ 0.000611] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001227] CPU: Testing write buffer coherency: ok
[ 0.001600] /cpus/cpu@0 missing clock-frequency property
[ 0.001626] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002072] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002251] Hierarchical SRCU implementation.
[ 0.002744] smp: Bringing up secondary CPUs ...
[ 0.002760] smp: Brought up 1 node, 1 CPU
[ 0.002769] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002776] CPU: All CPU(s) started in SVC mode.
[ 0.003541] devtmpfs: initialized
[ 0.006698] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007007] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007033] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007198] pinctrl core: initialized pinctrl subsystem
[ 0.008076] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[ 0.008221] NET: Registered protocol family 16
[ 0.008710] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009845] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009864] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023323] SCSI subsystem initialized
[ 0.023636] usbcore: registered new interface driver usbfs
[ 0.023705] usbcore: registered new interface driver hub
[ 0.023807] usbcore: registered new device driver usb
[ 0.024055] pps_core: LinuxPPS API ver. 1 registered
[ 0.024066] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024089] PTP clock support registered
[ 0.024321] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026181] clocksource: Switched to clocksource arch_sys_counter
[ 0.037007] NET: Registered protocol family 2
[ 0.037605] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037640] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037664] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037789] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037840] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038059] NET: Registered protocol family 1
[ 0.038654] RPC: Registered named UNIX socket transport module.
[ 0.038678] RPC: Registered udp transport module.
[ 0.038684] RPC: Registered tcp transport module.
[ 0.038689] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049614] NFS: Registering the id_resolver key type
[ 0.049672] Key type id_resolver registered
[ 0.049679] Key type id_legacy registered
[ 0.049728] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051209] random: fast init done
[ 0.054050] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.054076] io scheduler noop registered
[ 0.054084] io scheduler deadline registered
[ 0.054340] io scheduler cfq registered (default)
[ 0.054354] io scheduler mq-deadline registered
[ 0.054361] io scheduler kyber registered
[ 0.058679] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127895] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.131119] console [ttyS0] disabled
[ 0.151398] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.742095] console [ttyS0] enabled
[ 0.750265] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.756919] m25p80: probe of spi32766.0 failed with error -2
[ 0.763129] libphy: Fixed MDIO Bus: probed
[ 0.767891] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.773685] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.779473] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.785469] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.795050] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.800744] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.807973] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.813625] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.820849] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.825807] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.832777] libphy: stmmac: probed
[ 0.838129] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.844666] ehci-platform: EHCI generic platform driver
[ 0.850307] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.855929] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.863906] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.896201] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.903457] hub 1-0:1.0: USB hub found
[ 0.907404] hub 1-0:1.0: 1 port detected
[ 0.911895] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.918195] ohci-platform: OHCI generic platform driver
[ 0.923767] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.930496] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.938458] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.011318] hub 2-0:1.0: USB hub found
[ 1.015158] hub 2-0:1.0: 1 port detected
[ 1.022800] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032406] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041447] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048356] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052904] i2c /dev entries driver
[ 1.057933] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067453] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136231] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.183269] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.193289] mmc0: new high speed SDHC card at address 0007
[ 1.199310] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.205679] usbcore: registered new interface driver usbhid
[ 1.211346] usbhid: USB HID core driver
[ 1.216082] mmcblk0: mmc0:0007 SL16G 14.5 GiB
[ 1.222782] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.230838] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.238750] NET: Registered protocol family 17
[ 1.243320] Key type dns_resolver registered
[ 1.247864] Registering SWP/SWPB emulation handler
[ 1.261903] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.272623] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.288900] Console: switching to colour frame buffer device 100x30
[ 1.301305] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.309914] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.321320] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.327158] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.336384] hub 3-0:1.0: USB hub found
[ 1.340276] hub 3-0:1.0: 1 port detected
[ 1.345313] using random self ethernet address
[ 1.349872] using random host ethernet address
[ 1.355458] usb0: HOST MAC aa:79:94:aa:a8:cf
[ 1.359890] usb0: MAC 9a:8b:a7:5b:c9:82
[ 1.363775] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.371290] g_cdc gadget: g_cdc ready
[ 1.377744] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.387235] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:57 UTC (57)
[ 1.395493] vcc5v0: disabling
[ 1.398554] ALSA device list:
[ 1.401524] #0: V3s Audio Codec
[ 1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[ 1.413788] Please append a correct "root=" boot option; here are the available partitions:
[ 1.422164] b300 15159296 mmcblk0
[ 1.422170] driver: mmcblk
[ 1.428971] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 1.437402] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[ 1.444698] Hardware name: Allwinner sun8i Family
[ 1.449434] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[ 1.457180] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[ 1.464404] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[ 1.471281] [<c011b05c>] (panic) from [<c090110c>] (mount_block_root+0x19c/0x26c)
[ 1.478759] [<c090110c>] (mount_block_root) from [<c09012f8>] (mount_root+0x11c/0x124)
[ 1.486669] [<c09012f8>] (mount_root) from [<c090144c>] (prepare_namespace+0x14c/0x194)
[ 1.494667] [<c090144c>] (prepare_namespace) from [<c0900dcc>] (kernel_init_freeable+0x1d0/0x1e0)
[ 1.503529] [<c0900dcc>] (kernel_init_freeable) from [<c0686fdc>] (kernel_init+0x8/0x110)
[ 1.511700] [<c0686fdc>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[ 1.519273] Rebooting in 5 seconds..
离线
[ 1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
第二个分区有问题, 或者卡坏, 或者文件系统代码没有编译进来.
离线
[ 1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
第二个分区有问题, 或者卡坏, 或者文件系统代码没有编译进来.
我换了2张卡都是不可以的。
主要问题就是出现在
1.删除所有的分区
2.烧uboot,sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.创建分区fat16,ext4之后,分别把zimage以及dtb文件拷贝,以及root.tar解压到第二个分区。
4.插入tf卡运行,此时log根本没有。怀疑是分区的时候将uboot弄没了,重新烧uboot到tf卡,此时发现TF卡已经无法挂载到ubuntu主机上。
5.怀疑是dd命令出错?还是TF卡的问题,我用的TF卡一个是16G(闪迪),一个是64G(三星)都是同样的问题,而且uboot会提示
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** Using Backup GPT ***
是我哪里操作有误吗?
离线
我换了2张卡都是不可以的。
主要问题就是出现在
1.删除所有的分区
2.烧uboot,sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.创建分区fat16,ext4之后,分别把zimage以及dtb文件拷贝,以及root.tar解压到第二个分区。
4.插入tf卡运行,此时log根本没有。怀疑是分区的时候将uboot弄没了,重新烧uboot到tf卡,此时发现TF卡已经无法挂载到ubuntu主机上。
5.怀疑是dd命令出错?还是TF卡的问题,我用的TF卡一个是16G(闪迪),一个是64G(三星)都是同样的问题,而且uboot会提示
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** Using Backup GPT ***
是我哪里操作有误吗?
已经解决了,就是因为分区的原因,之前分区的时候将GPT 搞坏了,重新全部分区之后解决的(diskgenius重新格式化)
离线
已经解决了,就是因为分区的原因,之前分区的时候将GPT 搞坏了,重新全部分区之后解决的(diskgenius重新格式化)
原来如此!
离线
用全志的PhoenixCard制作启动卡
离线
上传文件太慢了,改天再上传了。
离线
最后Linux卡在这一段要怎么解决呢
[ 1.186769] Exception stack(0xc182dfb0 to 0xc182dff8)
[ 1.191881] dfa0: 00000000 00000000 00000000 00000000
[ 1.200121] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.208313] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.214983] ---[ end trace aef8a221958f96a8 ]---
[ 1.219677] musb-sunxi 1c13000.usb: Error unknown readb offset 128
[ 1.225980] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22
[ 1.233890] musb-hdrc: probe of musb-hdrc.1.auto failed with error -22
[ 1.241075] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.250174] i2c /dev entries driver
[ 1.282067] sunxi-mmc 1c0f000.mmc: base:0x8820c3be irq:18
[ 1.289515] usbcore: registered new interface driver usbhid
[ 1.295154] usbhid: USB HID core driver
[ 1.310809] NET: Registered protocol family 17
[ 1.315518] Key type dns_resolver registered
[ 1.322155] Loading compiled-in X.509 certificates
[ 1.333978] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.348742] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.355589] ALSA device list:
[ 1.358717] #0: Loopback 1
[ 1.362556] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.371354] cfg80211: failed to load regulatory.db
[ 1.376979] Waiting for root device /dev/mmcblk0p2...
离线
有不明白之处请跟贴留言!
坑哥,你好,一张sd卡FAT区32M 和ext4区必须需要分配掉剩余的存储空间么,这里遇到一个批量生产的问题,我们把制作好的sd启动卡,通过USB Duplicator Image Creator.exe 工具制作成了一个512M大小的image文件,然后将这个image 文件通过Win32DiskImager.exe工具进行批量制作启动SD卡,我们使用的是512M的闪迪的sd卡,但是文件系统加内核镜像加起来并没有512M,实际差不多不到200M,想知道通过什么方法可以把这个image文件大小制作成实际大小的,但是SD卡还是使用512M的,这样生产起来效率高一些,不然复制一张卡得2分多钟,有点慢呢。。
离线
坑哥,你好,一张sd卡FAT区32M 和ext4区必须需要分配掉剩余的存储空间么,这里遇到一个批量生产的问题,我们把制作好的sd启动卡,通过USB Duplicator Image Creator.exe 工具制作成了一个512M大小的image文件,然后将这个image 文件通过Win32DiskImager.exe工具进行批量制作启动SD卡,我们使用的是512M的闪迪的sd卡,但是文件系统加内核镜像加起来并没有512M,实际差不多不到200M,想知道通过什么方法可以把这个image文件大小制作成实际大小的,但是SD卡还是使用512M的,这样生产起来效率高一些,不然复制一张卡得2分多钟,有点慢呢。。
感觉理论上可以不需要那大的image,因为进入linux之后还是可以通过命令扩容。
离线
卡分区的问题。。。以前遇见过。。。后来就是从新格式就好了
离线
没爬梯用git实在是太慢了 直接用坑哥的文件吧
离线
TF卡做启动,比spi flash速度怎么样
离线
git太慢了,直接来下载晕哥的资料比较实在。多谢多谢。
离线
根文件系统编译的时候,会下载很多第三方资源吗??都是90M的大小,而且几kb每秒的下载,编译一下午啦
离线
[ 1.491909] Freeing unused kernel memory: 1024K
[ 1.509044] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[ 1.523016] Starting init: /sbin/init exists but couldn't execute it (error -5)
[ 1.531902] Starting init: /bin/sh exists but couldn't execute it (error -5)
[ 1.539077] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 1.553232] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[ 1.560529] Hardware name: Allwinner sun8i Family
[ 1.565267] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[ 1.573013] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[ 1.580238] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[ 1.587111] [<c011b05c>] (panic) from [<c06870d4>] (kernel_init+0x100/0x110)
[ 1.594156] [<c06870d4>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[ 1.601728] Rebooting in 5 seconds..
被这个Starting init: /sbin/init exists but couldn't execute it 困扰一天了,整套用的都是晕哥提供的不知道哪里出错了,奔溃
离线
本人新人入门,问一个白痴问题,先dd到tf卡的bin文件,在后面分区操作中会被保留还是怎么操作?我看进行地一个32M分区的时候,不知道是不是跳过了dd进去的内容,感谢各位分享
离线
折腾到半夜,可以串口登录了,但是启动时候lcd可以看到uboot企鹅logo和版本号,然后就不显示,串口后台可以登录,怎么可以让lcd在启动后也正常显示呢?
离线
TB买了两张2G的TF卡,都出现ext4无法挂载的问题
离线
操作了一遍还是不行,不知道自己在哪个坑里没有出来,还要继续找
离线
离线
楼主,您好,
U-Boot SPL 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
我的插入TF卡,USB上电,运行到这个,就没了,必须得按下复位键,然后又重新打印这一串,能帮忙看下着是啥原因吗?怎么没执行下去?
离线
感谢晕哥,烧录一下子变简单了
离线
感谢晕哥,烧录一下子变简单了
离线
晕哥 这个有详细的编译视频教程么
离线
晕哥和各位大佬 有谁做过SD NAND 主线uboot+主线linux 的方案,今天淘了一个创世的SD NAND 4Gbit 的,准备以TF 卡接口来启动,这样是否可行?
离线
其实f1c100s对于tf卡是不是有一定限制?我用了几张很差的廉价tf卡,启动不了linux,用三星的SDHC的16G卡就一切正常。
只是觉得用个16G的卡跑几兆的东西,很蛋疼
离线
按照这个步骤我烧写了UBOOT成功了,我是先分区后烧的UBOOT也是可以的
离线
Linux内核启动成功,值得庆祝
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
4016104 bytes read in 636 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 29 ms (397.5 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw
vt.global_cursor_default=0
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000017] Switching to timer-based delay loop, resolution 41ns
[ 0.000183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000417] Console: colour dummy device 80x30
[ 0.000454] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000469] pid_max: default: 32768 minimum: 301
[ 0.000597] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000611] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001213] CPU: Testing write buffer coherency: ok
[ 0.001599] /cpus/cpu@0 missing clock-frequency property
[ 0.001623] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002061] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002237] Hierarchical SRCU implementation.
[ 0.002731] smp: Bringing up secondary CPUs ...
[ 0.002747] smp: Brought up 1 node, 1 CPU
[ 0.002757] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002764] CPU: All CPU(s) started in SVC mode.
[ 0.003528] devtmpfs: initialized
[ 0.006657] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006981] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007149] pinctrl core: initialized pinctrl subsystem
[ 0.008018] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[ 0.008160] NET: Registered protocol family 16
[ 0.008646] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009779] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009797] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023302] SCSI subsystem initialized
[ 0.023613] usbcore: registered new interface driver usbfs
[ 0.023685] usbcore: registered new interface driver hub
[ 0.023788] usbcore: registered new device driver usb
[ 0.024038] pps_core: LinuxPPS API ver. 1 registered
[ 0.024050] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024074] PTP clock support registered
[ 0.024302] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026192] clocksource: Switched to clocksource arch_sys_counter
[ 0.036937] NET: Registered protocol family 2
[ 0.037527] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037561] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037584] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037712] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037760] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037983] NET: Registered protocol family 1
[ 0.038563] RPC: Registered named UNIX socket transport module.
[ 0.038584] RPC: Registered udp transport module.
[ 0.038590] RPC: Registered tcp transport module.
[ 0.038596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040552] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049508] NFS: Registering the id_resolver key type
[ 0.049561] Key type id_resolver registered
[ 0.049568] Key type id_legacy registered
[ 0.049617] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[ 0.051107] random: fast init done
[ 0.053940] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053965] io scheduler noop registered
[ 0.053972] io scheduler deadline registered
[ 0.054223] io scheduler cfq registered (default)
[ 0.054237] io scheduler mq-deadline registered
[ 0.054245] io scheduler kyber registered
[ 0.058599] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127379] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.130632] console [ttyS0] disabled
[ 0.150911] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.741614] console [ttyS0] enabled
[ 0.749825] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.756472] m25p80: probe of spi32766.0 failed with error -2
[ 0.762672] libphy: Fixed MDIO Bus: probed
[ 0.767429] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.773223] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.779007] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.785001] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.794579] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.800274] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.807502] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.813155] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.820380] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.825339] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.832313] libphy: stmmac: probed
[ 0.837683] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.844221] ehci-platform: EHCI generic platform driver
[ 0.849858] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.855474] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.863449] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.896208] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.903462] hub 1-0:1.0: USB hub found
[ 0.907411] hub 1-0:1.0: 1 port detected
[ 0.911909] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.918203] ohci-platform: OHCI generic platform driver
[ 0.923779] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.930511] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.938470] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.011310] hub 2-0:1.0: USB hub found
[ 1.015147] hub 2-0:1.0: 1 port detected
[ 1.022757] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032347] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041369] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048276] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052827] i2c /dev entries driver
[ 1.057872] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067370] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136243] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.181709] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.189887] mmc0: new SDHC card at address 0001
[ 1.195020] mmcblk0: mmc0:0001 SD16G 14.8 GiB
[ 1.199910] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.206361] usbcore: registered new interface driver usbhid
[ 1.211937] usbhid: USB HID core driver
[ 1.218401] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.226459] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.232863] mmcblk0: p1 p2
[ 1.239084] NET: Registered protocol family 17
[ 1.243647] Key type dns_resolver registered
[ 1.248194] Registering SWP/SWPB emulation handler
[ 1.259671] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.270353] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.286648] Console: switching to colour frame buffer device 100x30
[ 1.299046] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.307654] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.319098] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.324864] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.334025] hub 3-0:1.0: USB hub found
[ 1.338001] hub 3-0:1.0: 1 port detected
[ 1.343149] using random self ethernet address
[ 1.347724] using random host ethernet address
[ 1.353263] usb0: HOST MAC 86:ea:3a:db:1c:dd
[ 1.357728] usb0: MAC ba:23:53:3d:44:90
[ 1.361628] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.369152] g_cdc gadget: g_cdc ready
[ 1.375511] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.385094] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:42 UTC (102)
[ 1.393521] vcc5v0: disabling
[ 1.396551] ALSA device list:
[ 1.399517] #0: V3s Audio Codec
[ 1.404919] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.414445] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.524068] EXT4-fs (mmcblk0p2): recovery complete
[ 1.534519] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.542732] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.551738] devtmpfs: mounted
[ 1.555995] Freeing unused kernel memory: 1024K
[ 1.743770] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
buildroot login: root
# cd /
# ls
bin lib lost+found opt run tmp
dev lib32 media proc sbin usr
etc linuxrc mnt root sys var
离线
想把uboot文件从sd卡读出来,有什么好办法吗? 原来的包括源文件以及编译好的都格式化掉了。
离线