Skip to content

tanhailong/buildroot-tiny200-qemu

 
 

Repository files navigation

buildroot for usb display for F1C200s demo

20230705: Experience version Internal testing only.

how to build:

  1. decrypt patch file

cd board/allwinner/suniv-f1c100s/patch/linux cat 0019-add-usb-display-demo-src.patch.des3.udisp_xfz1986 | openssl des3 -md sha256 -d -k pass_word > 0019-add-usb-display-demo-src.patch

note:the pass_word should get form author on bilibili. 解密密码需要在b站上找作者,目前是粉丝团福利期,预计农历新年解除此限制。

  1. just follow below step to get img

  2. run it: connect f1c200s serial in shell.

echo > /sys/kernel/config/usb_gadget/g1/UDC

cd lib/modules/5.4.99/kernel/drivers/usb/gadget/function

insmod jdec.ko

insmod udisp_xfz1986_demo.ko

/opt/devmset 0x1c20000 0x90001f00 1

/opt/devmd 0x1c20000

windows driver install / windows驱动安装

  1. 预编译好的驱动包,https://github.com/chuanjinpang/windows_win10_idd_xfz1986_usb_display_drv_f1c200s/tree/master/test_drv
  2. 也可以自己使用vs2015安装,

安装方法

  1. 因为没有签名,使用的测试版本,需要用管理员权限打开test sign mode. 命令: bcdedit /set testsigning on 然后重启电脑,生效后,桌面右下角会有test mode的水印信息。
  2. 在设备管理器中,找到我们的设备,需要把设备插入,然后查找驱动路径。

plugin usb to windows, install windows driver, maybe need change resolution for display.

refer project or web pages, thanks for these.

  1. https://github.com/aodzip/buildroot-tiny200
  2. https://whycan.com/t_8114.html Baremetal hardware JPEG-decoder example (F1C100S)
  3. https://whycan.com/t_5429.html f1c100s成功运行jpeg硬解码demo,但输出还是有问题

重要说明:

当前有一个严重的问题, 硬解jpg数据时会有大概1%的概率会出错,生成屏幕闪烁一下,如上图。 这应该是和USB传输相关,当USB不工作时,没有发现硬解出错的问题。

解决方案: 1.找全志支持解决。 2.workaround 使用直接传输rgb565, VGA 640*480 能30fps.

Buildroot Package for Allwinner SIPs

Opensource development package for Allwinner F1C100s & F1C200s

Driver support

Check this file to view current driver support progress for F1C100s/F1C200s: PROGRESS-SUNIV.md

Check this file to view current driver support progress for V3/V3s/S3/S3L: PROGRESS-V3.md

Install

Install necessary packages

sudo apt install wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev
sudo apt install python3-distutils

Download BSP

Notice: Root permission is not necessery for download or extract.

git clone https://github.com/aodzip/buildroot-tiny200

Make the first build

Notice: Root permission is not necessery for build firmware.

Apply defconfig

Caution: Apply defconfig will reset all buildroot configurations to default values.

Generally, you only need to apply it once.

cd buildroot-tiny200
make widora_mangopi_r3_defconfig

Regular build

make

Speed up build progress

Download speed

Buildroot will download sourcecode when compiling the firmware. You can grab a TRUSTWORTHY archive of 'dl' folder for speed up.

Compile speed

If you have a multicore CPU, you can try

make -j ${YOUR_CPU_COUNT}

or buy a powerful PC for yourself.

Flashing firmware to target

You can flash a board by Linux (Recommended) or Windows system.

Helper Scripts

  • rebuild-uboot.sh: Recompile U-Boot when you direct edit U-Boot sourcecode.
  • rebuild-kernel.sh: Recompile Kernel when you direct edit Kernel sourcecode.
  • emulate-chroot.sh: Emulate target rootfs by chroot.

About

Buildroot Package for F1C100s/200s for qemu test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 72.2%
  • C 9.2%
  • Python 8.4%
  • Shell 5.9%
  • C++ 1.1%
  • Assembly 1.0%
  • Other 2.2%