Giter VIP home page Giter VIP logo

pine-a64-rust-workspace's Introduction

Pine A64 Rust Workspace

Crates

Building

rustc 1.46.0-nightly (346aec9b0 2020-07-11)

rustup target add aarch64-unknown-none

cargo build --release

Copy elf to binary:

cargo objcopy -- -O binary target/aarch64-unknown-none/release/<img> /dest/<img>.bin
cargo objcopy --release -- -O binary /dest/<img>.bin

U-boot

TODO - track u-boot.cfg here

CONFIG_CMD_CACHE=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:auto"

ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make pine64-lts_defconfig
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make
dd if=u-boot-sunxi-with-spl.bin of=/dev/sda bs=1k seek=8
U-Boot SPL 2020.10-rc1-00148-g719f42190d-dirty (Aug 01 2020 - 07:59:39 -0700)
...

U-Boot 2020.10-rc1-00148-g719f42190d-dirty (Aug 01 2020 - 08:04:33 -0700) Allwinner Technology
...

Environment:

setenv imgname img.bin

setenv loadaddr 0x42000000

# Make sure the caches are off for now
setenv bootimg 'tftp ${loadaddr} ${serverip}:${imgname}; dcache flush; dcache off; go ${loadaddr}'

Links

...

Stuff for the PinePhone BSP crate

  • PinePhone debug UART is UART0, PB8/PB9

pine-a64-rust-workspace's People

Contributors

jonlamb-gh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pine-a64-rust-workspace's Issues

Figure out the u-boot SPL issue

using SPL from apritzel/u-boot.git works, but from upstream doesn't for some reason

spl from https://github.com/apritzel/u-boot.git, branch: sunxi64-image-20180316
sudo dd if=spl/sunxi-spl.bin of=/dev/sda bs=8k seek=1

u-boot from upstream
sudo dd if=u-boot.itb of=/dev/sda bs=8k seek=5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.