module ZephRay;

今朝有鱼今朝摸

Category

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

Tags

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

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
标签:Linux

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

Hardware Virtualization on RK3288

2019 年 9 月 21 日分类:软件坑#Linux#ARM
```make ARCH=aarch32 CROSS_COMPILE=arm-linux-gnueabihf- PLAT=rk3288 AARCH32_SP=sp_min``` ```cp ~/arm-trusted-firmware/build/rk3288/release/bl32/bl32.elf ./bl31.elf``` ```pip3 install pyelftools``` ```tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin idbloader.img cat spl/u-boot-spl.bin >> idbloader.img``` ```make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- evb-rk3288-rk808_defconfig```

Linux for HP Prime G2

2019 年 7 月 23 日分类:软件坑#计算器#Linux

0. Overview

This project aims to port Linux OS to the HP Prime calculator. It is based on the Buildroot distribution. Long term goal is providing an alternative OS on Prime that is more capable than the original OS (PPL support, or better RPN support, native binary code execution for sure, and so on).

Please be aware this project is still in its early stages. It is not useful for general use as a calculator OS yet.

WARNING: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

WARNING: The software is not fully tested. Installing it might brick your calculator (unable to boot) or you may lose the ability to install the original (stock) HP Prime OS back. Use it at your own risk.

WARNING: None of the software/ documentation/ guide provided shall be used for cheating in the exam. Linux OS shall not be used when using the calculator in the exam or any other cases that doing so would cause academic integrity violations.

If you have any questions, feel free to contact me (zephray at outlook dot com). All scripts are released to public domain (if applicable).

1. Status

Linux OS:

  • [x] DDR initialization
  • [x] U-boot Boot loader
  • [x] Basic Linux OS
  • [x] LCD controller SPI driver
  • [x] LCD fbdev driver
  • [x] PWM backlight driver
  • [x] Touchscreen driver
  • [x] PMIC driver
  • [x] keypad driver
  • [x] NAND flash driver
  • [ ] Standby

Application:

  • [ ] Launcher UI
  • [ ] System settings UI

More applications T.B.D.

MORE

交叉编译 OpenCV

2018 年 12 月 28 日分类:软件坑#单片机#Linux
#安装编译依赖
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

#新版本 Ubuntu 的源中没有 libjasper-dev 手动添加源
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev

#创建编译目录:
mkdir opencv-build

#下载 OpenCV 源代码:
git clone https://github.com/Itseez/opencv.git

mkdir build
cd build

#创建 cmake 编译信息:
cmake -DENABLE_VFPV3=ON -DENABLE_VFPV4=ON -DENABLE_NEON=ON -DCMAKE_TOOLCHAIN_FILE=../opencv/platforms/linux/arm-gnueabi.toolchain.cmake ../opencv

#编译:
make -j4
make install

东西都在 ./install 目录下了。

编译自己的应用时注意 opencv2 头文件都是在 opencv4 文件夹下的。 编译参数:

OPENCV_INCLUDE=$(LIBPREFIX)/include/opencv4
-I$(OPENCV_INCLUDE)
-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_flann

(笔记)使用linaro工具链构建busybox文件系统

2018 年 12 月 28 日分类:软件坑#ARM#Linux

只是做一下记录。由于uboot的兼容性问题,仍然选用gcc5。以下主要记录命令,基本可以直接复制使用。因目标平台为Cortex-A7,选择gnueabihf工具链。全文基本复读https://ntzyz.io/post/arm-v7-a-cross-compile-notes,zyz真是太强啦!

环境:Ubuntu 16.04 LTS + bash 执行用户需要具有root权限

BusyBox本体:

#建立保存下载文件的临时文件夹
mkdir temp && cd temp

#下载linaro工具链
wget http://releases.linaro.org/components/toolchain/binaries/5.5-2017.10/arm-linux-gnueabihf/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar.xz

#解压至/opt
xz -d gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar.xz
sudo tar xvf gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar -C /opt/

#准备目标文件系统,放置于/opt/basefiles中
sudo mkdir /opt/basefiles

#为当前session设置环境变量
export PATH=/opt/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

#下载并编译BusyBox
wget https://busybox.net/downloads/busybox-1.28.3.tar.bz2
tar xjvf busybox-1.28.3.tar.bz2
cd busybox-1.28.3
make defconfig
sudo ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make -j4 install CONFIG_PREFIX=/opt/basefiles
cd ..
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.