页次: 1
谢谢,原来最终包都生成好了。
这个上有mtp,看到芒果派3了,U1是终端
1. adb貌似没有出来,是要主动操作什么么?
2. 这个包是否支持视频播放?我看到mpv在里头,但是播放视频的vo是否是没增加呢?
3. kenel中应也要对应修改分辨率,请问是哪儿有说明么?芒果派dts对应是啥
谢谢楼主
gubaoyl 说:编译打包
烧录
第一步,想这么用起来。redstar 说:你现在想完成什么功能?
①windows平台用win32diskimager, ②linux平台用dd命令把 output/images/sysimage-sdcard.img 烧到tf卡即可.
看了一下,还是不知道如何调用脚本打包。这个sdk是否有个介绍文档,至少能让我编译跑起来的那种就好。
谢谢。
或者分享几个你常用的的使用命令吧。我希望能用起来。
命令包括:
修改常用配置
编译打包
烧录
1. 修改u-boot lcd 的分辨率
直接改这个文件: "board/widora/mangopi/r3/uboot.defconfig", 然后执行 ./rebuild-uboot.sh & make2. 打包是这个文件 board/allwinner/suniv-f1c100s/scripts/genimage.sh
配置文件:
board/allwinner/sun8i-v3s/genimage-sdcard.cfg board/allwinner/sun8i-v3s/genimage-nor.cfg board/allwinner/sun8i-v3s/genimage-nand.cfg board/allwinner/sun8i-v3s/genimage-flasher.cfg
buildroot-tiny200$ ls output/images/
bootfs.vfat rootfs.cpio rootfs.ext2 rootfs.tar sysimage-nor.img u-boot-sunxi-with-nand-spl.bin
devicetree.dtb rootfs.cpio.gz rootfs.ext4 sysimage-flasher.img sysimage-sdcard.img u-boot-sunxi-with-spl.bin
flasher.vfat rootfs.cpio.uboot rootfs.squashfs sysimage-nand.img u-boot.bin zImage
这个sdk的使用介绍在哪儿可以找到?比如我需要配置为其他显示分辨率,改内核或者uboot的配置?都在out下的这个么?
root@1a97dcdad25b:/opt/lichee/buildroot-tiny200/output/build# cd uboot-2020.07/^C
root@1a97dcdad25b:/opt/lichee/buildroot-tiny200/output/build# cd linux-5.4.66/
用了tiny200的sdk,这个目录下的文件在最终打包是用什么方式打包成spi或者tf的镜像?镜像需要跑在100s,需要改点配置吧?
perfect:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH="../buildroot-2017.08/output/target/"
adbd之前都已经ok,这种方式可以加模块了,非常感谢。
#
# adbd&
#
# install_listener('tcp:5037','*smartsocket*')
cannot bind 'tcp:5037'
这个我之前也是搜索一圈,其他地方介绍的都是找到占用这个端口的进程kill,但是在nano上没人用网络呀。请问是否遇到这样的问题。
用这个命令安装ko文件:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=/根文件系统目录/ make modules_install
参考:
V3S荔枝派zero uboot 和 linux 使用 ethernet 步骤总结
http://whycan.com/t_336.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)
你好,是同一个编译器出来的。
目录:
# ls -lah /lib/modules/5.2.0-licheepi-nano\+/
total 17
drwxr-xr-x 2 root root 1.0K Jan 1 00:01 .
drwxr-xr-x 4 root root 1.0K Jan 1 00:01 ..
-rw-r--r-- 1 root root 13.6K Oct 19 2020 g_ffs.ko
-rw-r--r-- 1 root root 0 Jan 1 00:01 modules.alias
-rw-r--r-- 1 root root 10 Jan 1 00:01 modules.dep
-rw-r--r-- 1 root root 0 Jan 1 00:01 modules.symbols
#
你的 ko 是怎么安装的, 目录结构是怎样的, zImage和ko是不是同一个编译器编译的?
谢谢回复。
这些我都有选上了。
/opt/lichee/linux# grep -rn CONFIG_USB_LIBCOMPOSITE ./
./drivers/usb/gadget/Makefile:9:obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
./.config:2414:CONFIG_USB_LIBCOMPOSITE=m
启动kernel段的usb相关日志:
[ 0.881956] SCSI Media Changer driver v0.25
[ 0.887498] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.894225] ehci-platform: EHCI generic platform driver
[ 0.899781] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.906155] ohci-platform: OHCI generic platform driver
[ 0.911924] usbcore: registered new interface driver usb-storage
[ 0.918593] i2c /dev entries driver
[ 0.923947] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 0.962040] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 0.971515] usbcore: registered new interface driver usbhid
[ 0.977160] usbhid: USB HID core driver
[ 0.997152] NET: Registered protocol family 17
[ 1.001932] Key type dns_resolver registered
[ 1.008644] Loading compiled-in X.509 certificates
这个时候执行脚本第一条:
# modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
[ 151.491654] g_ffs: Unknown symbol usb_remove_function (err -2)
[ 151.510187] g_ffs: Unknown symbol usb_get_function_instance (err -2)
[ 151.529127] g_ffs: Unknown symbol usb_string_ids_tab (err -2)
[ 151.547418] g_ffs: Unknown symbol usb_get_function (err -2)
[ 151.565522] g_ffs: Unknown symbol ffs_single_dev (err -2)
[ 151.577433] g_ffs: Unknown symbol usb_composite_unregister (err -2)
[ 151.596298] g_ffs: Unknown symbol gether_set_dev_addr (err -2)
[ 151.614729] g_ffs: Unknown symbol usb_put_function (err -2)
[ 151.632873] g_ffs: Unknown symbol rndis_borrow_net (err -2)
[ 151.651122] g_ffs: Unknown symbol usb_add_function (err -2)
[ 151.669727] g_ffs: Unknown symbol usb_composite_probe (err -2)
[ 151.688654] g_ffs: Unknown symbol gether_register_netdev (err -2)
[ 151.708062] g_ffs: Unknown symbol usb_composite_overwrite_options (err -2)
[ 151.728474] g_ffs: Unknown symbol gether_set_qmult (err -2)
[ 151.747566] g_ffs: Unknown symbol usb_otg_descriptor_alloc (err -2)
[ 151.767610] g_ffs: Unknown symbol gether_set_gadget (err -2)
[ 151.787238] g_ffs: Unknown symbol usb_put_function_instance (err -2)
[ 151.807663] g_ffs: Unknown symbol gether_set_host_addr (err -2)
[ 151.827641] g_ffs: Unknown symbol usb_otg_descriptor_init (err -2)
[ 151.847849] g_ffs: Unknown symbol ffs_name_dev (err -2)
[ 151.860261] g_ffs: Unknown symbol usb_add_config (err -2)
[ 151.880980] g_ffs: Unknown symbol usb_remove_function (err -2)
[ 151.900603] g_ffs: Unknown symbol usb_get_function_instance (err -2)
[ 151.920776] g_ffs: Unknown symbol usb_string_ids_tab (err -2)
[ 151.940361] g_ffs: Unknown symbol usb_get_function (err -2)
[ 151.959735] g_ffs: Unknown symbol ffs_single_dev (err -2)
[ 151.972249] g_ffs: Unknown symbol usb_composite_unregister (err -2)
[ 151.992151] g_ffs: Unknown symbol gether_set_dev_addr (err -2)
[ 152.011598] g_ffs: Unknown symbol usb_put_function (err -2)
[ 152.030757] g_ffs: Unknown symbol rndis_borrow_net (err -2)
[ 152.049899] g_ffs: Unknown symbol usb_add_function (err -2)
[ 152.069043] g_ffs: Unknown symbol usb_composite_probe (err -2)
[ 152.088476] g_ffs: Unknown symbol gether_register_netdev (err -2)
[ 152.108172] g_ffs: Unknown symbol usb_composite_overwrite_options (err -2)
[ 152.128696] g_ffs: Unknown symbol gether_set_qmult (err -2)
[ 152.147872] g_ffs: Unknown symbol usb_otg_descriptor_alloc (err -2)
[ 152.167743] g_ffs: Unknown symbol gether_set_gadget (err -2)
[ 152.186967] g_ffs: Unknown symbol usb_put_function_instance (err -2)
[ 152.207059] g_ffs: Unknown symbol gether_set_host_addr (err -2)
[ 152.227009] g_ffs: Unknown symbol usb_otg_descriptor_init (err -2)
[ 152.247226] g_ffs: Unknown symbol ffs_name_dev (err -2)
[ 152.259657] g_ffs: Unknown symbol usb_add_config (err -2)
modprobe: can't load module g_ffs (g_ffs.ko): unknown symbol in module, or unknown parameter
modprobe时候出现了这些错,请问哪位知道是漏选了什么么?没找到对策还。
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot" 和insmod都如下错误。
# insmod /lib/modules/5.2.0-licheepi-nano\+/g_ffs.ko
[ 310.565393] g_ffs: Unknown symbol usb_remove_function (err -2)
[ 310.584947] g_ffs: Unknown symbol usb_get_function_instance (err -2)
[ 310.605081] g_ffs: Unknown symbol usb_string_ids_tab (err -2)
[ 310.624635] g_ffs: Unknown symbol usb_get_function (err -2)
[ 310.643973] g_ffs: Unknown symbol ffs_single_dev (err -2)
[ 310.656482] g_ffs: Unknown symbol usb_composite_unregister (err -2)
[ 310.676361] g_ffs: Unknown symbol gether_set_dev_addr (err -2)
[ 310.695811] g_ffs: Unknown symbol usb_put_function (err -2)
[ 310.714981] g_ffs: Unknown symbol rndis_borrow_net (err -2)
[ 310.734163] g_ffs: Unknown symbol usb_add_function (err -2)
[ 310.753337] g_ffs: Unknown symbol usb_composite_probe (err -2)
[ 310.772755] g_ffs: Unknown symbol gether_register_netdev (err -2)
[ 310.792480] g_ffs: Unknown symbol usb_composite_overwrite_options (err -2)
[ 310.813022] g_ffs: Unknown symbol gether_set_qmult (err -2)
[ 310.832200] g_ffs: Unknown symbol usb_otg_descriptor_alloc (err -2)
[ 310.852113] g_ffs: Unknown symbol gether_set_gadget (err -2)
[ 310.871397] g_ffs: Unknown symbol usb_put_function_instance (err -2)
[ 310.891480] g_ffs: Unknown symbol gether_set_host_addr (err -2)
[ 310.911437] g_ffs: Unknown symbol usb_otg_descriptor_init (err -2)
[ 310.931649] g_ffs: Unknown symbol ffs_name_dev (err -2)
[ 310.944087] g_ffs: Unknown symbol usb_add_config (err -2)
[ 310.965354] g_ffs: Unknown symbol usb_remove_function (err -2)
[ 310.984951] g_ffs: Unknown symbol usb_get_function_instance (err -2)
[ 311.005079] g_ffs: Unknown symbol usb_string_ids_tab (err -2)
[ 311.024673] g_ffs: Unknown symbol usb_get_function (err -2)
[ 311.044035] g_ffs: Unknown symbol ffs_single_dev (err -2)
[ 311.056515] g_ffs: Unknown symbol usb_composite_unregister (err -2)
[ 311.076342] g_ffs: Unknown symbol gether_set_dev_addr (err -2)
[ 311.095715] g_ffs: Unknown symbol usb_put_function (err -2)
[ 311.114843] g_ffs: Unknown symbol rndis_borrow_net (err -2)
[ 311.134003] g_ffs: Unknown symbol usb_add_function (err -2)
[ 311.153145] g_ffs: Unknown symbol usb_composite_probe (err -2)
[ 311.172560] g_ffs: Unknown symbol gether_register_netdev (err -2)
[ 311.192228] g_ffs: Unknown symbol usb_composite_overwrite_options (err -2)
[ 311.212693] g_ffs: Unknown symbol gether_set_qmult (err -2)
[ 311.231789] g_ffs: Unknown symbol usb_otg_descriptor_alloc (err -2)
[ 311.251648] g_ffs: Unknown symbol gether_set_gadget (err -2)
[ 311.270881] g_ffs: Unknown symbol usb_put_function_instance (err -2)
[ 311.290940] g_ffs: Unknown symbol gether_set_host_addr (err -2)
[ 311.310874] g_ffs: Unknown symbol usb_otg_descriptor_init (err -2)
[ 311.331072] g_ffs: Unknown symbol ffs_name_dev (err -2)
[ 311.343476] g_ffs: Unknown symbol usb_add_config (err -2)
页次: 1