http://forum.armbian.com/index.php/topic/574-minimum-steps-to-build-a-kernel-module-for-latest-armbian-release/#entry3916
25 lines
1.9 KiB
Batchfile
25 lines
1.9 KiB
Batchfile
# if you want to boot jessie with systemd: setenv bootargs init=/bin/systemd console=tty1 ...
|
|
# remember to disable ramlog prior switching to systemd
|
|
setenv bootargs "console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup-enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1"
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
# Boot loader script to boot with different boot methods for old and new kernel
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
if ext4load mmc 0 0x00000000 /boot/.next || fatload mmc 0 0x00000000 .next
|
|
then
|
|
# sunxi mainline kernel
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile} || fatload mmc 0 0x49000000 /dtb/${fdtfile}
|
|
ext4load mmc 0 0x46000000 /boot/zImage || fatload mmc 0 0x46000000 zImage
|
|
env set fdt_high ffffffff
|
|
bootz 0x46000000 - 0x49000000
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
else
|
|
# sunxi android kernel
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
ext4load mmc 0 0x43000000 /boot/script.bin || fatload mmc 0 0x43000000 script.bin
|
|
ext4load mmc 0 0x48000000 /boot/zImage || fatload mmc 0 0x48000000 zImage
|
|
bootz 0x48000000
|
|
#--------------------------------------------------------------------------------------------------------------------------------
|
|
fi
|
|
# Recompile with:
|
|
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr |