blob: 0eb8a46abf0358075a00175fa943c18e7b3ec345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#REFERENCES :
http://wiki.lemaker.org/BananaPro/Pi:Building_u-boot,_script.bin_and_linux-kernel#Building_the_kernel
http://wiki.lemaker.org/BananaPro/Pi:Setting_up_the_bootable_SD_card
https://sites.google.com/site/manisbutareed/bringing-my-beagles-to-heel/selected-annotated-u-boot-commands
https://linux-sunxi.org/Mainline_Kernel_Howto
https://linux-sunxi.org/Manual_build_howto#Setting_up_the_boot_partition
https://stackoverflow.com/questions/28891221/uenv-txt-vs-boot-scr
https://github.com/linux-sunxi/u-boot-sunxi/wiki
#LeMaker BPS (board package support)
git clone --recursive https://github.com/LeMaker/lemaker-bsp.git
./fex2bin ../sunxi-boards/sys_config/a20/BananaPro.fex ../../mageia4arm/bananaPro/script.bin
#Generic u-boot for sunxi
git clone https://github.com/linux-sunxi/u-boot-sunxi
make CROSS_COMPILE=arm-linux-gnu- BananaPro_config
#Default conf use bootz and dtb tree.
#Default script
setenv bootargs console=ttyS0,115200 noinitrd
disp.screen0_output_mode=EDID:1280x720p50 init=/init
root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage
bootm 0x48000000
mkimage -C none -A arm -T script -d ./boot.cmd ./boot.scr
#DTB from mainline linux kernel
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git --depth=1
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- sunxi_defconfig
ARCH=arm CROSS_COMPILE=arm-linux-gnu- make -j8 dtbs
cp ./arch/arm/boot/dts/sun7i-a20-bananapro.dtb ./sun7i-a20-bananapro.dtb
#Generating a symbolic relative link to the "last" kernel :
ln -r -s ./vmlinuz-5.2.13-desktop-2.mga7 ./vmlinuz
rm -f ./vmlinuz && ln -r -s ./vmlinuz-5.3.1-desktop-2.mga7 ./vmlinuz
|