1 Star 1 Fork 15

路洋 / f1c100s_buildroot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
悟空 提交于 2020-01-21 19:43 . 修改说明文档

Buildroot f1c100s一键编译

编译flash

  • make licheepi_nano-flash_defconfig
  • make

编译ramdisk

  • make licheepi_nano-ram_defconfig
  • make

烧写flash

  • sudo ./up-flash.sh

在内存中运行

  • sudo ./up-ram.sh

nes模拟器编译与采蘑菇运行

  • cd board/f1c100s/apps/infones/linux
  • make
  • 把InfoNES和Super_mario_brothers.nes复制到"output/target/root"
  • 在回到f1c10s_buildroot目录下 make
  • sudo ./up-flash.sh 或 sudo ./up-ram.sh
  • 运行嵌入式linux系统,登陆后在/root目录下运行
  • ./InfoNES Super_mario_brothers.nes

修改核心添加RGB与BGR切换功能(画PCB时方便走线)

  • output/build/linux-5.2.11/arch/arm/boot/dts/suniv-f1c100s.dtsi
  • RGB

be0: display-backend@1e60000 {

compatible = "allwinner,suniv-f1c100s-display-backend";

reg = <0x01e60000 0x10000>;

reg-names = "be";

interrupts = <31>;

clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>,

	 <&ccu CLK_DRAM_DE_BE>;
	 
clock-names = "ahb", "mod",

	      "ram";
	      
resets = <&ccu RST_BUS_DE_BE>;

reset-names = "be";

assigned-clocks = <&ccu CLK_DE_BE>;

assigned-clock-rates = <300000000>;

rgb-channel-swap = <0>; /* 或者删除这句为RGB格式 */
  • BGR

be0: display-backend@1e60000 {

compatible = "allwinner,suniv-f1c100s-display-backend";

reg = <0x01e60000 0x10000>;

reg-names = "be";

interrupts = <31>;

clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>,

	 <&ccu CLK_DRAM_DE_BE>;
	 
clock-names = "ahb", "mod",

	      "ram";
	      
resets = <&ccu RST_BUS_DE_BE>;

reset-names = "be";

assigned-clocks = <&ccu CLK_DE_BE>;

assigned-clock-rates = <300000000>;

rgb-channel-swap = <1>; /* 设置为1为BGR格式 */
其他
1
https://gitee.com/IOTTS/f1c100s_buildroot.git
git@gitee.com:IOTTS/f1c100s_buildroot.git
IOTTS
f1c100s_buildroot
f1c100s_buildroot
master

搜索帮助