Code Monkey home page Code Monkey logo

v3s-linux-sdk's Introduction

v3s-linux-sdk

v3s sdk with uboot, linux, and rootfs


  • toolschain

export PATH="$PATH:/sdk_path/tools/external-toolchain/bin/"

  • build u-boot

cd u-boot

sudo apt-get install device-tree-compiler

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- LicheePi_Zero_defconfig

make ARCH=arm menuconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-

cp u-boot-sunxi-with-spl.bin ../pub/boot

  • build Kernel

cd linux-3.4

make ARCH=arm sun8iw8p1smp_zero_diy_defconfig

make ARCH=arm menuconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage -j16

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules_install

cp arch/arm/boot/uImage ../pub/boot

  • build sunxi-tools

cd tool/sunxi-tools

make

  • build preboot-config

cd preboot-config

mkimage -C none -A arm -T script -d boot.cmd ../pub/boot/boot.scr

../tools/sunxi-tools/fex2bin sys_config.fex > ../pub/boot/script.bin

  • buidl rootfs

cd buildroot-2017.08

make sunxi_v3s_zero_defconfig

make menuconfig

make

cp -rf output/target/* ../pub/rootfs

  • build rootfs.jffs2

cd pub/

../tools/filesystem/mkfs.jffs2 -d rootfs -l -e 0x10000 -o rootfs.jffs2

  • Boot

  • SD card boot

cd pub

cp boot.scr script.bin uImage your_sdcard_1st_partion

sudo cp rootfs/* your_sdcard_2st_partion

  • Nor Spi Flash Boot

burning uboot

load mmc 0:1 0x41000000 u-boot-sunxi-with-spl.bin;sf probe 0;sf erase 0 0x80000;sf write 0x41000000 0 0x80000

burning script.bin

load mmc 0:1 0x41000000 script.bin;sf probe 0;sf erase 0x80000 0x80000;sf write 0x41000000 0x80000 0x80000

burning kernel

load mmc 0:1 0x41000000 uImage;sf probe 0;sf erase 0x100000 0x300000;sf write 0x41000000 0x100000 0x300000

burning rootfs

load mmc 0:1 0x41000000 rootfs.jffs2;sf probe 0;sf erase 0x400000 0xC00000;sf write 0x41000000 0x400000 0xxx(rootfs.jff2 real size)

SUNXI-FEL Boot

Connect the first and second pin of the nor flash with tweezers before board startup.

sunxi-fel -v uboot u-boot-sunxi-with-spl.bin write 0x41000000 uImage write 0x41d00000 script.bin

after the system boot, enter root, and the adb server running, you can run "adb shell" to debug program on PC, so you can use adb tools, such as adb push and add pull to speed up debugging.

v3s-linux-sdk's People

Contributors

yeashen avatar

Watchers

 avatar

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.