zhangximin / orangepi_h2_linux

Contains uboot and kernel source code, You can build your own image using build scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The OrangePi-Kernel contains Linux kernel sources adapted for OrangePI zero, gcc toolchain
The script "build_linux_kernel.sh" can be used to build the kernel


Example1(how to make uImage and uboot.bin):
"cd OrangePI-Kernel"
compile uboot for OPI-zero
"sudo ./build_uboot.sh zero"
cleans the kernel tree before build
"sudo ./build_linux_kernel.sh clean"   
builds the uImage for OPI-zero
"sudo ./build_linux_kernel.sh zero"                              
"cd ../OrangePi-BuildLinux"  
build file system
"./create_image"    
build zero image                                        
"sudo ./image_from_dir linux-xenial orangepi ext4 zero"    
"sudo dd bs=4M if=orangepi.img of=/dev/sd*"                  
Read and edit "params.sh" to adjust the parameters to your needs
if you can not insmod modules,delete directory(/lib/modules) ,then copy /home/orangepi/3.4.39_zero to /lib/modules/, and reboot


Example2(configure desktop)
After BOOTING,to resize linux partition to fill sd card
"sudo fs_resize"
"sudo reboot"
to install desktop run,please wait at least one hours
"sudo install_lxde_desktop"  

About

Contains uboot and kernel source code, You can build your own image using build scripts.


Languages

Language:C 92.5%Language:C++ 4.4%Language:Assembly 1.7%Language:Objective-C 0.5%Language:Makefile 0.4%Language:Perl 0.1%Language:Python 0.1%Language:Shell 0.1%Language:Logos 0.0%Language:Yacc 0.0%Language:Roff 0.0%Language:Lex 0.0%Language:GDB 0.0%Language:Scilab 0.0%Language:UnrealScript 0.0%Language:Awk 0.0%Language:XS 0.0%Language:XC 0.0%Language:Batchfile 0.0%Language:ASP 0.0%Language:Perl 6 0.0%Language:M4 0.0%Language:SourcePawn 0.0%Language:CSS 0.0%Language:Tcl 0.0%Language:XSLT 0.0%