您尚未登录。

楼主 #1 2020-01-08 21:51:13

rayfoxjx
会员
注册时间: 2019-04-23
已发帖子: 24
积分: 24

f1c100s一键编译buildroot, 含nes模拟器编译与采蘑菇运行

https://gitee.com/jiang_xing/f1c100s_buildroot


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格式 */

----------------------------
本站下载: f1c100s_buildroot.7z

离线

楼主 #3 2020-01-11 23:10:46

rayfoxjx
会员
注册时间: 2019-04-23
已发帖子: 24
积分: 24

Re: f1c100s一键编译buildroot, 含nes模拟器编译与采蘑菇运行

视频如下

https://www.bilibili.com/video/av83032347

添加了NES模拟器

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn