Skip to content

weimingtom/wmt_liulianpi_study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

wmt_liulianpi_study

My LiuLianPi study

ref

Toolchain, v3s

  • gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz

TODO

  • Adding label v3s and f1c
  • How to run v3s port of BSD OS (?)

v3s, clear screen, 480x272, 1920 == 480 * 4

# fbset

mode "480x272-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 480 272 480 272 32
        timings 0 0 0 0 0 0 0
        accel true
        rgba 8/16,8/8,8/0,0/0
endmode

# cat /bin/busybox > /dev/fb0
# dd if=/dev/zero of=/dev/fb0 bs=1920 count=272

v3s, mount and umount tf card

# mkdir /mnt/SDCARD
# [ 1367.283998] mmc0: card 0001 removed
[ 1465.929778] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1465.939855] mmc0: new high speed SDHC card at address 0001
[ 1465.947700] mmcblk0: mmc0:0001 SD 29.1 GiB
[ 1465.953666]  mmcblk0: p1

# fdisk -l
Disk /dev/mmcblk0: 29 GB, 31266439168 bytes, 61067264 sectors
3801 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1    0,0,2       1023,254,63          1   61067262   61067262 29.1G  c Win95 FAT32 (LBA)
# mount /dev/mmcblk0p1 /mnt/SDCARD
# cd /mnt/SDCARD
# ls
System Volume Information
  • If echo: mount: mounting /dev/mmcblk0p1 on /mnt/SDCARD failed: Invalid argument
  • Please format it as FAT32
  • umount
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 9.9M      3.6M      6.4M  36% /
devtmpfs                 26.4M         0     26.4M   0% /dev
tmpfs                    26.9M         0     26.9M   0% /dev/shm
tmpfs                    26.9M     24.0K     26.8M   0% /tmp
tmpfs                    26.9M     16.0K     26.9M   0% /run
/dev/mmcblk0p1           29.1G     64.0K     29.1G   0% /mnt/SDCARD
# umount /dev/mmcblk0p1
umount: can't unmount /mnt/SDCARD: Device or resource busy
# cd
# umount /mnt/SDCARD

v3s, lvgl9_demo

  • lvgl9_demo, built with lvgl9_v1.zip (repacked from lvgl9.zip from author of liulianpi) and lvgl9.tar.gz (my mod and build, change CC)
  • How to run ? Copy to tf card (formated to FAT32) and insert it into liulianpi (also you can insert it before v3s booting), then run (no need to chmod +x)
# mkdir /mnt/SDCARD
# fdisk -l
# mount /dev/mmcblk0p1 /mnt/SDCARD
# cd /mnt/SDCARD
# ./lvgl9_demo

About

My LiuLianPi study

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published