module ZephRay;

今朝有鱼今朝摸

Category

  • 摄影
  • 玩机
  • 硬件坑
  • 翻译
  • 软件坑
  • 随记

Tags

  • LCD
  • 点屏
  • 单片机
  • 计算器
  • 事
  • FPGA
  • 摄影
  • STM32
  • 古董
  • Verilog
  • 测评
  • 笔记本
  • 改造
  • 移植
  • Linux
  • ARM
  • 树莓派
  • 小动物
  • 教程
  • nspire
  • 景
  • EPD
  • GameBoy
  • LED
  • 项目
  • 晒机
  • 3DS
  • ThinkPad
  • SDL
  • HP
  • IBM
  • 82ES
  • Kindle
  • Minecraft
  • 仙剑奇侠传
  • Chiptune
  • 花
  • Assembly
  • 手办
  • Nikon
  • 演讲
  • NDSL
  • 贴图

Recent replies

  • 城市猎人 发表于「IBM ThinkPad 560E (Type 2640) 简单展示」
  • Khiemmy 发表于「On the way to overclock the TI nspire CX II calculator」
  • critor 发表于「On the way to overclock the TI nspire CX II calculator」
  • ZephRay 发表于「On the way to overclock the TI nspire CX II calculator」
  • critor 发表于「On the way to overclock the TI nspire CX II calculator」
  • imbushuo 发表于「About Me」
  • 070 发表于「古董电脑选型」
  • Thermit 发表于「About Me」
  • 盛崖鱼 发表于「About Me」
  • Wenting Zhang 发表于「About Me」

My

RSS (中文优先)
RSS (English preferred)

坑 / Projects
关于我 / About
简历 / CV
破烂采购计划 / Craplist
古董电脑选型
SM83(GB CPU)指令编码
Linux PI 1M位跑分
Coremark跑分
音质参考

淘宝杂货铺
Bilibili空间
GitHub

Links

cnVintage古董电子论坛
cnCalc计算器论坛

Keshuai Xu
家骅的锦绣谷
>Lithia's Core
ntzyz's space
丘丘塔台
tonoko.moe
kasora's blog
447f.Misaka
paizhang.info
spinmry实验室
Hikari Calyx Tech.
春上冰月的博客
初音没有来
FindHao
Test2g
Shell Bin
LEAFER x LAB
标签:移植

Create a CoreMark Boot Disk for 386

2021 年 1 月 8 日分类:玩机#Linux#移植

Introduction

Coremark is a cross-platform CPU benchmark tool. I would like to create a Linux boot floppy disk that would boot on a real Intel 80386 machine and then run the coremark. It should support 80386SX with as little as ~8MB of RAM.

** WARNING **: The method described here is tested and failed to work on real machines / 86box. This project is not considered as done, and may be revisited in the future.

Buildroot

The buildroot is used to compile the gcc 5 that will be used to compile the kernel and the coremark. Linux distribution offered compiler doesn't quite work here because:

  1. We are stuck with Linux 3.2.102 if 386 support is necessary. Linux 3.2 can only be built with gcc 3-5 by default.
  2. The libc bundled with distribution compiler is unlikely to target i386. This cause issues when trying to link them statically into the build.

Buildroot Config

The last buildroot version that supports 386 is the 2016.02 version. Download, extract and run make menuconfig.

Set target architecture to i386, and target machine to 386. Set gcc version to 5.x. In bootloaders, select syslinux, image to install is mbr.

Buildroot Patch

There are several patches that is required to build the system correctly, apply them to the buildroot.

MORE

i.MX 6 UL + Linux 调试笔记

2017 年 9 月 27 日分类:硬件坑#移植#Linux#ARM

本文大概就是随便记录下调试过程中遇到的问题。考虑到iMX6还是相当好用的芯片,很有可能也不是最后一次用iMX6,那就姑且记录下,方便自己以后参考吧。

摄像头I2C

不知道为什么,iMX6的I2C拒绝和我的摄像头通信,示波器观察的话摄像头已经给了ACK,但是iMX6没有继续传输数据。好在Linux下使用软件I2C非常简单,只需要选中i2c-gpio驱动并且简单修改设备树即可。

i2c@0 {
	compatible = "i2c-gpio";
	gpios = <&gpio1 29 0
		 &gpio1 28 0>;
	#address-cells = <1>;
	#size-cells = <0>;

	mt9m: mt9m@5d {
		compatible = "mt9m";
		reg = <0x5d>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_csi1>;
		clocks = <&clks IMX6UL_CLK_CSI>;
		clock-names = "csi_mclk";
		csi_id = <0>;
		mclk = <20000000>;
		mclk_source = <0>;
		status = "okay";
		port {
			mt9m_ep: endpoint {
				remote-endpoint = <&csi1_ep>;
			};
		};
	};
};
MORE

仙剑奇侠传 3DS移植

2017 年 3 月 22 日分类:软件坑#3DS#SDL#移植#仙剑奇侠传

gbatemp首发,直接复制原文内容了,懒得翻译回中文了orz

简介

来自http://chinesepaladin.org/about的介绍:

MORE

3DS开发瞎折腾笔记[2]:SDL 1.2移植

2017 年 2 月 12 日分类:软件坑#3DS#SDL#移植

本文内容仅供存档说明,代码基本已经migrate进nop90的SDL移植,开发用途建议使用nop90的移植

前言

接上文,就是因为3DS上根本没有能好好用的SDL 1.2,所以自己移植咯……先给GitHub Repo:https://github.com/nbzwt/SDL-1.2-N3DS

其实我发现啊,这些个SDL 3DS移植的关系真是复杂,首先是有一个叫xerpi的人,在3年前fork了一份SDL2的repo,然后加入了对3DS的支持,虽然看commit记录似乎有模有样的样子,但是仔细看代码的话,应该是完全没有完成,而且因为库的原因也没有办法继续编译了。之后是nop90这个人,他在做SDL1.2的移植,很多代码直接用了xerpi的,当然他也做了不少修改,比如说按键部分,图形部分,至少应该是大概可以用了(当然用起来我感觉不对,哪有Flip一次不够得多来几次才能确保刷新的道理,还一言不合就卡死)。当然我可能就是第三个跳进坑里的人,在nop90的基础上继续移植(其实除了按键部分没有动,其它的都重写了)。

MORE

nPAL – The Legend of Sword and Fairy for Nspire ver. 1.1

2015 年 6 月 20 日分类:软件坑#nspire#计算器#移植#SDL#仙剑奇侠传
Hint: this post is also available in Chinese.

nPAL

About the game

XianJian QiXia Zhuan 仙劍奇俠傳 (also known as The Legend of Sword and Fairy and “PAL”) is an action RPG created by Taiwan’s Softstar Entertainment Inc. The game is considered by many as simply one of the best Chinese RPG ever created. Since its first release in 1995 (DOS Version), many new versions and sequels (including a prequel) were created. However, none could replace the breath-taking and tragic tale it was born from. Here, we meet our protagonist Li Xiaoyao; an aspiring martial artist and the lovely Zhao Ling’er, a charismatic Nuwa descendant.​

MORE
  • «
  • 1
  • 2
  • »
Copyright © 2009-2019 Wenting Zhang. All rights reserved.
Unless otherwise noted, content on this blog is licensed under CC BY-SA 4.0.